{"id":"CVE-2026-99676","aliases":["CVE-2026-99676"],"related":[],"kind":"vulnerability","state":"published","title":"net: restore refcount ordering for lockless socket access","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: restore refcount ordering for lockless socket access\n\nBefore commit fb041bb7c0a9 (\"locking/refcount: Consolidate implementations\nof refcount_t\"), default builds implemented refcount_inc_not_zero() using\natomic_add_unless(), which provided full memory ordering on success. The\ncommit removed that ordering on weakly ordered architectures, allowing\naccesses after a successful reference acquisition to be reordered before\nit.\n\nUse refcount_inc_not_zero_acquire() in the IPv4 and IPv6 established\nlookups and in inet_twsk_purge(), where the socket is validated again\nafter taking a reference.\n\nbpf_sk_assign() can receive a socket pointer obtained through BTF\nwithout a reference. Use acquire ordering when it takes its own reference\nfor a refcounted socket.\n\nUse refcount_set_release() when setting refcounts in the SYN cookie,\nTCP Fast Open, request migration, and TIME_WAIT paths. Keep the existing\nTIME_WAIT smp_wmb(), which separately orders the refcount store before\nehash publication.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: restore refcount ordering for lockless socket access\n\nBefore commit fb041bb7c0a9 (\"locking/refcount: Consolidate implementations\nof refcount_t\"), default builds implemented refcount_inc_not_zero() using\natomic_add_unless(), which provided full memory ordering on success. The\ncommit removed that ordering on weakly ordered architectures, allowing\naccesses after a successful reference acquisition to be reordered before\nit.\n\nUse refcount_inc_not_zero_acquire() in the IPv4 and IPv6 established\nlookups and in inet_twsk_purge(), where the socket is validated again\nafter taking a reference.\n\nbpf_sk_assign() can receive a socket pointer obtained through BTF\nwithout a reference. Use acquire ordering when it takes its own reference\nfor a refcounted socket.\n\nUse refcount_set_release() when setting refcounts in the SYN cookie,\nTCP Fast Open, request migration, and TIME_WAIT paths. Keep the existing\nTIME_WAIT smp_wmb(), which separately orders the refcount store before\nehash publication.","source":"cvelist"}],"published":"2026-11-20T05:50:24.118Z","modified":"2026-11-22T11:17:05.850Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca","fixed":"6f4fc93f76cd8ebd3c89a064573715503048d1ad","status":"affected"},{"type":"git","introduced":"fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca","fixed":"ddd14d0b5b5e650077779d9a158cb7a80ee8297b","status":"affected"},{"type":"git","introduced":"fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca","fixed":"52f5a5ab318f5b120eb686069fbd0108016c02b2","status":"affected"},{"type":"git","introduced":"fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca","fixed":"5b5d8f351dd96f56a58bb516a80e2d4d742fe4e2","status":"affected"},{"type":"git","version":"d0d583484d2ed9f5903edbbfa7e2a68f78b950b0","status":"affected"},{"type":"semver","introduced":"5.4.208","fixed":"5.5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.5","status":"unaffected"},{"type":"semver","introduced":"6.12.118","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.64","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.5","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/6f4fc93f76cd8ebd3c89a064573715503048d1ad","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ddd14d0b5b5e650077779d9a158cb7a80ee8297b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/52f5a5ab318f5b120eb686069fbd0108016c02b2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5b5d8f351dd96f56a58bb516a80e2d4d742fe4e2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99676","url":"https://www.cve.org/CVERecord?id=CVE-2026-99676","licence":"CVE Terms of Use","modified":"2026-11-22T11:09:38.037Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99676","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99676","licence":"Public domain","modified":"2026-11-22T11:17:05.850Z"}],"updatedAt":"2026-11-25T22:59:52.304Z","epss":{"score":0.00558,"percentile":0.47905,"date":"2026-12-02T12:00:21.000Z"}}