CVE-2025-38617
JSON

7.8high

net/packet: fix a race in packet_set_ring() and packet_notifier()

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.45% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 and 2 more
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.*
CVE List
linux linux_kernelfrom 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 and 1 moreNVD
debian debian_linux11.0NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD4.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-362

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net/packet: corrección de una carrera en packet_set_ring() y packet_notifier(). Cuando packet_set_ring() libera po->bind_lock, otro hilo puede ejecutar packet_notifier() y procesar un evento NETDEV_UP. Esta carrera y la corrección son similares a las del commit 15fe076edea7 ("net/packet: corrección de una carrera en packet_bind() y packet_notifier()"). En este caso, el evento NETDEV_UP de packet_notifier también se ejecutó mientras una sección crítica de po->bind_lock debía liberarse temporalmente. La corrección también consistía en establecer temporalmente po->num en cero para mantener el socket desconectado hasta que se recupere el bloqueo. El po->bind_lock en packet_set_ring y packet_notifier precede a la introducción del historial de Git.

References

https://git.kernel.org/stable/c/18f13f2a83eb81be349a9757ba2141ff1da9ad73patch
https://git.kernel.org/stable/c/7da733f117533e9b2ebbd530a22ae4028713955cpatch
https://git.kernel.org/stable/c/ba2257034755ae773722f15f4c3ad1dcdad15ca9patch
https://git.kernel.org/stable/c/7de07705007c7e34995a5599aaab1d23e762d7capatch
https://git.kernel.org/stable/c/88caf46db8239e6471413d28aabaa6b8bd552805patch
https://git.kernel.org/stable/c/f2e8fcfd2b1bc754920108b7f2cd75082c5a18dfpatch
https://git.kernel.org/stable/c/e50ccfaca9e3c671cae917dcb994831a859cf588patch
https://git.kernel.org/stable/c/f1791fd7b845bea0ce9674fcf2febee7bc87a893patch
https://git.kernel.org/stable/c/01d3c8417b9c1b884a8a981a3b886da556512f36patch
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.htmlthird-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2025-38617 changed 2026-10-15CVE Terms of Use
NVDCVE-2025-38617 changed 2026-10-15Public domain