CVE-2025-38617
net/packet: fix a race in packet_set_ring() and packet_notifier()
Check your servers for CVE-2025-38617
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38617 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.45%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 41.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 15 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 18f13f2a83eb81be349a9757ba2141ff1da9ad73 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 7da733f117533e9b2ebbd530a22ae4028713955c affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before ba2257034755ae773722f15f4c3ad1dcdad15ca9 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 7de07705007c7e34995a5599aaab1d23e762d7ca affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 88caf46db8239e6471413d28aabaa6b8bd552805 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before f2e8fcfd2b1bc754920108b7f2cd75082c5a18df affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before e50ccfaca9e3c671cae917dcb994831a859cf588 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before f1791fd7b845bea0ce9674fcf2febee7bc87a893 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 01d3c8417b9c1b884a8a981a3b886da556512f36
Other versions: unaffected
|
| Linux |
affected 2.6.12 unaffected before 2.6.12 unaffected from 5.4.297 up to and including 5.4.* unaffected from 5.10.241 up to and including 5.10.* unaffected from 5.15.190 up to and including 5.15.* unaffected from 6.1.148 up to and including 6.1.* unaffected from 6.6.102 up to and including 6.6.* unaffected from 6.12.42 up to and including 6.12.* unaffected from 6.15.10 up to and including 6.15.* unaffected from 6.16.1 up to and including 6.16.* unaffected 6.17 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38617 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38617
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38617
trivy image --scanners vuln IMAGE | grep CVE-2025-38617
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/18f13f2a83eb81be349a9757ba2141ff1da9ad73 git.kernel.org
- https://git.kernel.org/stable/c/7da733f117533e9b2ebbd530a22ae4028713955c git.kernel.org
- https://git.kernel.org/stable/c/ba2257034755ae773722f15f4c3ad1dcdad15ca9 git.kernel.org
- https://git.kernel.org/stable/c/7de07705007c7e34995a5599aaab1d23e762d7ca git.kernel.org
- https://git.kernel.org/stable/c/88caf46db8239e6471413d28aabaa6b8bd552805 git.kernel.org
- https://git.kernel.org/stable/c/f2e8fcfd2b1bc754920108b7f2cd75082c5a18df git.kernel.org
- https://git.kernel.org/stable/c/e50ccfaca9e3c671cae917dcb994831a859cf588 git.kernel.org
- https://git.kernel.org/stable/c/f1791fd7b845bea0ce9674fcf2febee7bc87a893 git.kernel.org
- https://git.kernel.org/stable/c/01d3c8417b9c1b884a8a981a3b886da556512f36 git.kernel.org
- https://blog.calif.io/p/a-race-within-a-race-exploiting-cve blog.calif.io
- https://github.com/google/security-research/pull/339 github.com
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
Source: the record CVE-2025-38617 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse