# CVE-2025-38617: net/packet: fix a race in packet\_set\_ring() and packet\_notifier()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.38% (percentile 23, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-08-22T13:01:23.963Z
- **Modified:** 2026-10-15T22:18:47.480Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 18f13f2a83eb81be349a9757ba2141ff1da9ad73; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7da733f117533e9b2ebbd530a22ae4028713955c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ba2257034755ae773722f15f4c3ad1dcdad15ca9; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7de07705007c7e34995a5599aaab1d23e762d7ca; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 88caf46db8239e6471413d28aabaa6b8bd552805; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f2e8fcfd2b1bc754920108b7f2cd75082c5a18df; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e50ccfaca9e3c671cae917dcb994831a859cf588; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f1791fd7b845bea0ce9674fcf2febee7bc87a893; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 01d3c8417b9c1b884a8a981a3b886da556512f36
- Anyone running Linux 2.6.12

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

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 18f13f2a83eb81be349a9757ba2141ff1da9ad73; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7da733f117533e9b2ebbd530a22ae4028713955c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ba2257034755ae773722f15f4c3ad1dcdad15ca9; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7de07705007c7e34995a5599aaab1d23e762d7ca; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 88caf46db8239e6471413d28aabaa6b8bd552805; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f2e8fcfd2b1bc754920108b7f2cd75082c5a18df; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e50ccfaca9e3c671cae917dcb994831a859cf588; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f1791fd7b845bea0ce9674fcf2febee7bc87a893; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 01d3c8417b9c1b884a8a981a3b886da556512f36 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 01d3c8417b9c1b884a8a981a3b886da556512f36 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38617. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38617.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 18f13f2a83eb81be349a9757ba2141ff1da9ad73; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 7da733f117533e9b2ebbd530a22ae4028713955c; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ba2257034755ae773722f15f4c3ad1dcdad15ca9; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 18f13f2a83eb81be349a9757ba2141ff1da9ad73, Linux 7da733f117533e9b2ebbd530a22ae4028713955c, Linux 7de07705007c7e34995a5599aaab1d23e762d7ca, Linux 88caf46db8239e6471413d28aabaa6b8bd552805, Linux 01d3c8417b9c1b884a8a981a3b886da556512f36

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38617 being exploited?

There is no confirmed exploitation: CVE-2025-38617 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.38% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38617?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38617?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 18f13f2a83eb81be349a9757ba2141ff1da9ad73; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7da733f117533e9b2ebbd530a22ae4028713955c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ba2257034755ae773722f15f4c3ad1dcdad15ca9; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 7de07705007c7e34995a5599aaab1d23e762d7ca; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 88caf46db8239e6471413d28aabaa6b8bd552805; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f2e8fcfd2b1bc754920108b7f2cd75082c5a18df; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e50ccfaca9e3c671cae917dcb994831a859cf588; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f1791fd7b845bea0ce9674fcf2febee7bc87a893; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 01d3c8417b9c1b884a8a981a3b886da556512f36; Linux 2.6.12.

### Is there a fix for CVE-2025-38617?

Yes. Fixed in Linux 18f13f2a83eb81be349a9757ba2141ff1da9ad73, Linux 7da733f117533e9b2ebbd530a22ae4028713955c, Linux 7de07705007c7e34995a5599aaab1d23e762d7ca, Linux 88caf46db8239e6471413d28aabaa6b8bd552805, Linux 01d3c8417b9c1b884a8a981a3b886da556512f36. Upgrade Linux to 01d3c8417b9c1b884a8a981a3b886da556512f36 or later.

### How do I check if I'm affected by CVE-2025-38617?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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://github.com/google/security-research/pull/339>
- other: <https://blog.calif.io/p/a-race-within-a-race-exploiting-cve>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38617>

HTML: <https://flawdb.com/CVE-2025-38617> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38617>
