In the Linux kernel, the following vulnerability has been resolved: net: guard timestamp cmsgs to real error queue skbs skb_is_err_queue() treats PACKET_OUTGOING as the sole marker for an skb from sk_error_queue. That assumption is not true for AF_PACKET sockets: outgoing packet taps are also delivered to packet sockets with skb->pkt_type == PACKET_OUTGOING, but their skb->cb is owned by AF_PACKET instead of struct sock_exterr_skb. If such an skb is received with timestamping enabled, the generic timestamp cmsg path can read AF_PACKET control-buffer state as sock_exterr_skb::opt_stats. With SO_RXQ_OVFL enabled, the packet drop counter overlaps opt_stats. An odd drop count makes the path emit SCM_TIMESTAMPING_OPT_STATS with skb->len and skb->data. For non-linear skbs this copies past the linear head and can trigger hardened usercopy or disclose adjacent heap contents. Keep skb_is_err_queue() local to net/socket.c, but make it verify that the PACKET_OUTGOING marker is paired with the sock_rmem_free destructor installed by sock_queue_err_skb(). AF_PACKET receive skbs use normal receive ownership and no longer pass as error-queue skbs, while legitimate sk_error_queue entries keep the PACKET_OUTGOING marker and sock_rmem_free ownership.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
| Attack Vector | LOCAL |
|---|---|
| Attack Complexity | LOW |
| Privileges Required | LOW |
| User Interaction | NONE |
| Scope | UNCHANGED |
| Confidentiality Impact | HIGH |
| Integrity Impact | NONE |
| Availability Impact | HIGH |
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Type: Secondary
Exploitability Score: 1.8
Impact Score: 5.2
| Source | Type | Description |
|---|---|---|
| [email protected] | Primary |
en
NVD-CWE-noinfo
|
| Vendor | Product | Version | Update | Type |
|---|---|---|---|---|
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23beb86300> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23beb85d00> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23beb87ec0> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23beb85d80> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23beb85380> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23beb840c0> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23a59c3b40> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23beb843c0> | Operating System |
| linux | linux_kernel | 4.11 | <built-in method update of dict object at 0x7d23beb86080> | Operating System |
| linux | linux_kernel | 4.11 | <built-in method update of dict object at 0x7d23beb86580> | Operating System |
| linux | linux_kernel | 4.11 | <built-in method update of dict object at 0x7d23af254f40> | Operating System |
| linux | linux_kernel | 4.11 | <built-in method update of dict object at 0x7d23beb869c0> | Operating System |
| linux | linux_kernel | 4.11 | <built-in method update of dict object at 0x7d23a5311240> | Operating System |
| linux | linux_kernel | 4.11 | <built-in method update of dict object at 0x7d23a533b080> | Operating System |
| linux | linux_kernel | 7.1 | <built-in method update of dict object at 0x7d23beb86d00> | Operating System |
| linux | linux_kernel | 7.1 | <built-in method update of dict object at 0x7d23a59077c0> | Operating System |
| linux | linux_kernel | 7.1 | <built-in method update of dict object at 0x7d24246ec140> | Operating System |
| linux | linux_kernel | 7.1 | <built-in method update of dict object at 0x7d23beb87d40> | Operating System |
| linux | linux_kernel | 7.1 | <built-in method update of dict object at 0x7d23beb84680> | Operating System |
| linux | linux_kernel | 7.1 | <built-in method update of dict object at 0x7d23a59e0780> | Operating System |
| linux | linux_kernel | 7.1 | <built-in method update of dict object at 0x7d23beb85980> | Operating System |
| Vulnerable | CPE |
|---|---|
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:4.11:-:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:4.11:rc4:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:4.11:rc5:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:4.11:rc6:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:4.11:rc7:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:4.11:rc8:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.1:rc7:*:*:*:*:*:* |