{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-99676", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2026-09-25T10:25:14.428Z", "datePublished": "2026-11-20T05:50:24.118Z", "dateUpdated": "2026-11-22T11:09:38.037Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-11-22T11:09:38.037Z" }, "descriptions": [ { "lang": "en", "value": "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." } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL" }, "scenarios": [ { "lang": "en", "value": "AV:N - A TCP segment enters __inet_lookup_established() from tcp_v4_rcv() through __inet_lookup_skb(), and from tcp_v4_early_demux() in ip_rcv_finish_core(); tcp_v6_rcv() does the same via __inet6_lookup_established(). The header 4-tuple is the lookup key, and that segment is delivered to whatever socket the unordered refcount_inc_not_zero() returns.\nAC:L - The attacker produces the race by opening and closing connections and by completing SYN-cookie handshakes, so tcp_get_cookie_sock() and connect/close recycle SLAB_TYPESAFE_BY_RCU sockets while further segments enter the lookup. Relaxed refcount_inc_not_zero() does not order the following inet_match() or hlist_nulls_unhashed_lockless() recheck, and no victim action or hardware fault is required.\nPR:N - tcp_v4_rcv() and tcp_v4_early_demux() run on every incoming TCP segment before TCP-MD5, TCP-AO, or application authentication. Sending the segment to a listening port performs no credential check on this path.\nUI:N - The attacker both recycles the sockets and sends the racing segments. No local user must mount media, open a file, or accept a connection.\nS:U - The lookup, the recycled tcp_sock or request_sock, and any dst_entry reached from sk_rx_dst all belong to the host kernel. The bug does not cross a guest-to-host or IOMMU boundary.\nC:H - A load of sk_rx_dst after the relaxed refcount_inc_not_zero() can still observe the previous tcp_sock's route, which tcp_disconnect() already passed to dst_release(). tcp_v4_early_demux() and tcp_v4_do_rcv() then read dst->obsolete and call dst->ops->check on that freed dst_entry.\nI:H - tcp_v4_do_rcv() dispatches through the stale sk_rx_dst via dst->ops->check and can dst_release() it, writing a freed dst_entry. It also passes the attacker's segment to tcp_rcv_established() on the recycled socket, updating that socket's sequence state and receive queue.\nA:H - If reuse returns the unhashed SYN-cookie request published by tcp_get_cookie_sock(), its rsk_listener is NULL and tcp_v4_rcv() reads sk->sk_state at offset 0x12 through that NULL pointer in softirq, oopsing the host. The freed dst_entry dereference faults as well." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "net/core/filter.c", "net/ipv4/inet_connection_sock.c", "net/ipv4/inet_hashtables.c", "net/ipv4/inet_timewait_sock.c", "net/ipv4/syncookies.c", "net/ipv4/tcp_fastopen.c", "net/ipv6/inet6_hashtables.c" ], "versions": [ { "version": "fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca", "lessThan": "6f4fc93f76cd8ebd3c89a064573715503048d1ad", "status": "affected", "versionType": "git" }, { "version": "fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca", "lessThan": "ddd14d0b5b5e650077779d9a158cb7a80ee8297b", "status": "affected", "versionType": "git" }, { "version": "fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca", "lessThan": "52f5a5ab318f5b120eb686069fbd0108016c02b2", "status": "affected", "versionType": "git" }, { "version": "fb041bb7c0a918b95c6889fc965cdc4a75b4c0ca", "lessThan": "5b5d8f351dd96f56a58bb516a80e2d4d742fe4e2", "status": "affected", "versionType": "git" }, { "version": "d0d583484d2ed9f5903edbbfa7e2a68f78b950b0", "status": "affected", "versionType": "git" }, { "version": "5.4.208", "lessThan": "5.5", "status": "affected", "versionType": "semver" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "net/core/filter.c", "net/ipv4/inet_connection_sock.c", "net/ipv4/inet_hashtables.c", "net/ipv4/inet_timewait_sock.c", "net/ipv4/syncookies.c", "net/ipv4/tcp_fastopen.c", "net/ipv6/inet6_hashtables.c" ], "versions": [ { "version": "5.5", "status": "affected" }, { "version": "0", "lessThan": "5.5", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.118", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.18.64", "lessThanOrEqual": "6.18.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.3.5", "lessThanOrEqual": "7.3.*", "status": "unaffected", "versionType": "semver" }, { "version": "7.4-rc2", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.5", "versionEndExcluding": "6.12.118" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.5", "versionEndExcluding": "6.18.64" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.5", "versionEndExcluding": "7.3.5" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.5", "versionEndExcluding": "7.4-rc2" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.4.208" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/6f4fc93f76cd8ebd3c89a064573715503048d1ad" }, { "url": "https://git.kernel.org/stable/c/ddd14d0b5b5e650077779d9a158cb7a80ee8297b" }, { "url": "https://git.kernel.org/stable/c/52f5a5ab318f5b120eb686069fbd0108016c02b2" }, { "url": "https://git.kernel.org/stable/c/5b5d8f351dd96f56a58bb516a80e2d4d742fe4e2" } ], "title": "net: restore refcount ordering for lockless socket access", "x_generator": { "engine": "bippy-1.2.0" } } } }