# CVE-2025-38617: net/packet: fix a race in packet_set_ring() and packet_notifier()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 41% of CVEs (2026-12-01)
- Published: 2025-08-22T13:01:23.963Z
- Modified: 2026-10-15T22:18:47.480Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 18f13f2a83eb81be349a9757ba2141ff1da9ad73; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 7da733f117533e9b2ebbd530a22ae4028713955c; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before ba2257034755ae773722f15f4c3ad1dcdad15ca9; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 7de07705007c7e34995a5599aaab1d23e762d7ca; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 88caf46db8239e6471413d28aabaa6b8bd552805; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before f2e8fcfd2b1bc754920108b7f2cd75082c5a18df; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before e50ccfaca9e3c671cae917dcb994831a859cf588; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before f1791fd7b845bea0ce9674fcf2febee7bc87a893; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 01d3c8417b9c1b884a8a981a3b886da556512f36; 2.6.12 (not affected: before 2.6.12; from 5.4.297 up to 5.4.*; from 5.10.241 up to 5.10.*; from 5.15.190 up to 5.15.*; from 6.1.148 up to 6.1.*; from 6.6.102 up to 6.6.*; from 6.12.42 up to 6.12.*; from 6.15.10 up to 6.15.*; from 6.16.1 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 2.6.13 before 5.4.297; from 5.5 before 5.10.241; from 5.11 before 5.15.190; from 5.16 before 6.1.148; from 6.2 before 6.6.102; from 6.7 before 6.12.42; from 6.13 before 6.15.10; from 6.16 before 6.16.1; 2.6.12
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/18f13f2a83eb81be349a9757ba2141ff1da9ad73> (patch)
- <https://git.kernel.org/stable/c/7da733f117533e9b2ebbd530a22ae4028713955c> (patch)
- <https://git.kernel.org/stable/c/ba2257034755ae773722f15f4c3ad1dcdad15ca9> (patch)
- <https://git.kernel.org/stable/c/7de07705007c7e34995a5599aaab1d23e762d7ca> (patch)
- <https://git.kernel.org/stable/c/88caf46db8239e6471413d28aabaa6b8bd552805> (patch)
- <https://git.kernel.org/stable/c/f2e8fcfd2b1bc754920108b7f2cd75082c5a18df> (patch)
- <https://git.kernel.org/stable/c/e50ccfaca9e3c671cae917dcb994831a859cf588> (patch)
- <https://git.kernel.org/stable/c/f1791fd7b845bea0ce9674fcf2febee7bc87a893> (patch)
- <https://git.kernel.org/stable/c/01d3c8417b9c1b884a8a981a3b886da556512f36> (patch)
- <https://blog.calif.io/p/a-race-within-a-race-exploiting-cve>
- <https://github.com/google/security-research/pull/339>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38617](https://www.cve.org/CVERecord?id=CVE-2025-38617), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-38617](https://nvd.nist.gov/vuln/detail/CVE-2025-38617), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-38617 · Whole record: https://cve.day/CVE-2025-38617.json · Rebuilt by cve.day 2026-11-25T22:59:03.517Z
