CVE-2026-99676

net: restore refcount ordering for lockless socket access

State
Published
Severity
Not scored
Published
Nov 20, 2026
Updated
Nov 20, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

net: restore refcount ordering for lockless socket access

Before commit fb041bb7c0a9 ("locking/refcount: Consolidate implementations of refcount_t"), default builds implemented refcount_inc_not_zero() using atomic_add_unless(), which provided full memory ordering on success. The commit removed that ordering on weakly ordered architectures, allowing accesses after a successful reference acquisition to be reordered before it.

Use refcount_inc_not_zero_acquire() in the IPv4 and IPv6 established lookups and in inet_twsk_purge(), where the socket is validated again after taking a reference.

bpf_sk_assign() can receive a socket pointer obtained through BTF without a reference. Use acquire ordering when it takes its own reference for a refcounted socket.

Use refcount_set_release() when setting refcounts in the SYN cookie, TCP Fast Open, request migration, and TIME_WAIT paths. Keep the existing TIME_WAIT smp_wmb(), which separately orders the refcount store before ehash publication.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca to before 6f4fc93f76cd8ebd3c89a064573715503048d1adAffected
  • fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca to before ddd14d0b5b5e650077779d9a158cb7a80ee8297bAffected
  • fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca to before 52f5a5ab318f5b120eb686069fbd0108016c02b2Affected
  • fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca to before 5b5d8f351dd96f56a58bb516a80e2d4d742fe4e2Affected
  • d0d583484d2ed9f5903edbbfa7e2a68f78b950b0Affected
  • 5.4.208 to before 5.5Affected
LinuxLinux
  • 5.5Affected
  • before 5.5Not affected
  • 6.12.118 through 6.12.*Not affected
  • 6.18.64 through 6.18.*Not affected
  • 7.3.5 through 7.3.*Not affected
  • 7.4-rc2 and laterNot affected

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.