CVE-2026-99676
net: restore refcount ordering for lockless socket access
What happened?
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.
Affected software and versions
| Software | Version information | Fixed version |
|---|---|---|
| LinuxLinux | affected: fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca to < 6f4fc93f76cd8ebd3c89a064573715503048d1ad; affected: fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca to < ddd14d0b5b5e650077779d9a158cb7a80ee8297b; affected: fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca to < 52f5a5ab318f5b120eb686069fbd0108016c02b2; affected: fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca to < 5b5d8f351dd96f56a58bb516a80e2d4d742fe4e2; affected: d0d583484d2ed9f5903edbbfa7e2a68f78b950b0; affected: 5.4.208 to < 5.5 | See vendor advisory |
| LinuxLinux | affected: 5.5; unaffected: 0 to < 5.5; unaffected: 6.12.118 to ≤ 6.12.*; unaffected: 6.18.64 to ≤ 6.18.*; unaffected: 7.3.5 to ≤ 7.3.*; unaffected: 7.4-rc2 to ≤ * | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2026-99676
- https://git.kernel.org/stable/c/6f4fc93f76cd8ebd3c89a064573715503048d1ad
- https://git.kernel.org/stable/c/ddd14d0b5b5e650077779d9a158cb7a80ee8297b
- https://git.kernel.org/stable/c/52f5a5ab318f5b120eb686069fbd0108016c02b2
- https://git.kernel.org/stable/c/5b5d8f351dd96f56a58bb516a80e2d4d742fe4e2