Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2025-38617

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

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 18f13f2a83eb81be349a9757ba2141ff1da9ad73affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 7da733f117533e9b2ebbd530a22ae4028713955caffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < ba2257034755ae773722f15f4c3ad1dcdad15ca9affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 7de07705007c7e34995a5599aaab1d23e762d7caaffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 88caf46db8239e6471413d28aabaa6b8bd552805affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < f2e8fcfd2b1bc754920108b7f2cd75082c5a18dfaffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < e50ccfaca9e3c671cae917dcb994831a859cf588affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < f1791fd7b845bea0ce9674fcf2febee7bc87a893affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 01d3c8417b9c1b884a8a981a3b886da556512f36affected

Linux Linux

Default version status: affected

  • 2.6.12affected
  • 0 to < 2.6.12unaffected
  • 5.4.297 to ≤ 5.4.*unaffected
  • 5.10.241 to ≤ 5.10.*unaffected
  • 5.15.190 to ≤ 5.15.*unaffected
  • 6.1.148 to ≤ 6.1.*unaffected
  • 6.6.102 to ≤ 6.6.*unaffected
  • 6.12.42 to ≤ 6.12.*unaffected
  • 6.15.10 to ≤ 6.15.*unaffected
  • 6.16.1 to ≤ 6.16.*unaffected
  • 6.17 to ≤ *unaffected

References