In the Linux kernel, the following vulnerability has been resolved: net: fix fanout UAF in packet_release() via NETDEV_UP race `packet_release()` has a race window where `NETDEV_UP` can re-register a socket into a fanout group's `arr[]` array. The re-registration is not cleaned up by `fanout_release()`, leaving a dangling pointer in the fanout array. `packet_release()` does NOT zero `po->num` in its `bind_lock` section. After releasing `bind_lock`, `po->num` is still non-zero and `po->ifindex` still matches the bound device. A concurrent `packet_notifier(NETDEV_UP)` that already found the socket in `sklist` can re-register the hook. For fanout sockets, this re-registration calls `__fanout_link(sk, po)` which adds the socket back into `f->arr[]` and increments `f->num_members`, but does NOT increment `f->sk_ref`. The fix sets `po->num` to zero in `packet_release` while `bind_lock` is held to prevent NETDEV_UP from linking, preventing the race window. This bug was found following an additional audit with Claude Code based on CVE-2025-38617.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
| Attack Vector | LOCAL |
|---|---|
| Attack Complexity | LOW |
| Privileges Required | LOW |
| User Interaction | NONE |
| Scope | UNCHANGED |
| Confidentiality Impact | HIGH |
| Integrity Impact | HIGH |
| Availability Impact | HIGH |
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Type: Secondary
Exploitability Score: 1.8
Impact Score: 5.9
| Source | Type | Description |
|---|---|---|
| [email protected] | Primary |
en
CWE-416
|
| Vendor | Product | Version | Update | Type |
|---|---|---|---|---|
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23beb86a40> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23beb85e00> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d236440d700> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d2357b62e40> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23beb87440> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d2364417f80> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d236440d280> | Operating System |
| linux | linux_kernel | 3.1 | <built-in method update of dict object at 0x7d2424652e40> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7d2357b623c0> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7d23beb85d00> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7d23a52f6540> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7d2364415240> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7d23beb86c00> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7d2357b63f80> | Operating System |
| linux | linux_kernel | 7.0 | <built-in method update of dict object at 0x7d23a52f7580> | 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:3.1:-:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:* |