CVE-2025-38617
net/packet: fix a race in packet_set_ring() and packet_notifier()
Reported by linux · Published August 22, 2025
In the Linux kernel, the following vulnerability has been resolved: net/packet: fix a race in packet_set_ring() and packet_notifier() When packet_set_ring() releases po->bind_lock, another thread can run packet_notifier() and process an NETDEV_UP event. This race and the fix are both similar to that of commit 15fe076edea7 ("net/packet: fix a race in packet_bind() and packet_notifier()"). There too the packet_notifier NETDEV_UP event managed to run while a po->bind_lock critical section had to be temporarily released. And the fix was similarly to temporarily set po->num to zero to keep the socket unhooked until the lock is retaken. The po->bind_lock in packet_set_ring and packet_notifier precede the introduction of git history.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-modules-extra | Amazon Linux | 1:6.1.148-173.267.amzn2023 |
| kernel-tools | Amazon Linux | 1:6.1.148-173.267.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.46-66.121.amzn2023 |
| linux_kernel | linux | 6.16.1, 6.15.10, 6.12.42, 6.6.102, 6.1.148, 5.15.190, 5.10.241, 5.4.297 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 |
| Linux | Linux | 2.6.12, 0, 5.4.297 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | perf6.12 | 0 |
| linux | linux_kernel | 2.6.12, 2.6.12, 2.6.12 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
…and 12 more
Timeline
- Apr 28, 2025 PoC Published (16 in total, the first dated here)
- Aug 22, 2025 CVE Published
- Aug 23, 2025 EPSS Score (30 in total, the first dated here)
- Apr 20, 2026 Distribution Patch (259 in total, the first dated here)
- Apr 20, 2026 Security Advisory (313 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
- Oct 12, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38617
vulnetix vdb fixes CVE-2025-38617
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38617/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart