Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-50259

published high CVSS 3.1 · 7.8

bpf, sockmap: fix race in sock_map_free()

Published
15 Sep 2025, 14:02:47 UTC
Updated
15 Oct 2026, 21:31:19 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux20ae0cb8983b05136d5293c47fadc99a8ca8ca2d to < 4cabc3af4a6f36c222fecb15858c1060e59218e7 · 7e81a35302066c5a00b4c72d83e3ea4cad6eeb5b to < be719496ae6a7fc325e9e5056a52f63ebc84cc0c · 7e81a35302066c5a00b4c72d83e3ea4cad6eeb5b to < a443c55d96dede82a724df6e70a318ad15c199e1 · 7e81a35302066c5a00b4c72d83e3ea4cad6eeb5b to < e8b2b392a646bf5cb9413c1cc7a39d99c1b65a62 · 7e81a35302066c5a00b4c72d83e3ea4cad6eeb5b to < 5c3568166129bc73fd6b37748d2d8f95cd8f22f3 · 7e81a35302066c5a00b4c72d83e3ea4cad6eeb5b to < 0a182f8d607464911756b4dbef5d6cad8de22469 · 5.4.14 to < 5.4.229 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.5 (affected) · 0 to < 5.5 (unaffected · semver) · 5.4.229 through 5.4.* (unaffected · semver) · 5.10.163 through 5.10.* (unaffected · semver) · 5.15.86 through 5.15.* (unaffected · semver) · 6.0.16 through 6.0.* (unaffected · semver) · 6.1.2 through 6.1.* (unaffected · semver) · 6.2 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2023-026 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2023-012 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.4-2023-042 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.10-2023-026
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.15-2023-012
Show 11 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.4-2023-042
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.10-2023-026
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.15-2023-012
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.4-2023-042
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.10-2023-026
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.15-2023-012
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.4-2023-042
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.10-2023-026
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.15-2023-012
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.4-2023-042

Description

In the Linux kernel, the following vulnerability has been resolved: bpf, sockmap: fix race in sock_map_free() sock_map_free() calls release_sock(sk) without owning a reference on the socket. This can cause use-after-free as syzbot found [1] Jakub Sitnicki already took care of a similar issue in sock_hash_free() in commit 75e68e5bf2c7 ("bpf, sockhash: Synchronize delete from bucket list on map free") [1] refcount_t: decrement hit 0; leaking memory. WARNING: CPU: 0 PID: 3785 at lib/refcount.c:31 refcount_warn_saturate+0x17c/0x1a0 lib/refcount.c:31 Modules linked in: CPU: 0 PID: 3785 Comm: kworker/u4:6 Not tainted 6.1.0-rc7-syzkaller-00103-gef4d3ea40565 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: events_unbound bpf_map_free_deferred RIP: 0010:refcount_warn_saturate+0x17c/0x1a0 lib/refcount.c:31 Code: 68 8b 31 c0 e8 75 71 15 fd 0f 0b e9 64 ff ff ff e8 d9 6e 4e fd c6 05 62 9c 3d 0a 01 48 c7 c7 80 bb 68 8b 31 c0 e8 54 71 15 fd <0f> 0b e9 43 ff ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c a2 fe ff RSP: 0018:ffffc9000456fb60 EFLAGS: 00010246 RAX: eae59bab72dcd700 RBX: 0000000000000004 RCX: ffff8880207057c0 RDX: 0000000000000000 RSI: 0000000000000201 RDI: 0000000000000000 RBP: 0000000000000004 R08: ffffffff816fdabd R09: fffff520008adee5 R10: fffff520008adee5 R11: 1ffff920008adee4 R12: 0000000000000004 R13: dffffc0000000000 R14: ffff88807b1c6c00 R15: 1ffff1100f638dcf FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30c30000 CR3: 000000000d08e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> __refcount_dec include/linux/refcount.h:344 [inline] refcount_dec include/linux/refcount.h:359 [inline] __sock_put include/net/sock.h:779 [inline] tcp_release_cb+0x2d0/0x360 net/ipv4/tcp_output.c:1092 release_sock+0xaf/0x1c0 net/core/sock.c:3468 sock_map_free+0x219/0x2c0 net/core/sock_map.c:356 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 </TASK>

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

3

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The bug is reached only through local bpf(2) SOCKMAP create/update and map teardown (close last map FD → bpf_map_put → bpf_map_free_deferred → sock_map_free); it is not reachable from network packet processing. AC:L - The attacker fully controls both sides of the race—populating the SOCKMAP, closing the map to schedule sock_map_free, and concurrently closing enrolled sockets—so success does not depend on conditions outside their influence. PR:L - SOCKMAP creation needs capable(CAP_NET_ADMIN), but that capability is commonly granted to networking containers and delegated via BPF tokens; this matches established CNA PR:L scoring for the same sock_map/sk_psock subsystem when uncertain toward higher severity. UI:N - The attacker performs map create/update, map close, and concurrent socket close entirely in their own threads; no separate victim action is required. S:U - The use-after-free of struct sock remains inside the host kernel security authority and does not cross a VM, IOMMU, or sandbox boundary. C:H - sock_map_free() can lock/release a socket after its last reference is dropped, yielding a use-after-free of struct sock whose fields (including protocol ops) can be reclaimed for arbitrary kernel disclosure. I:H - A freed struct sock is a classic heap-spray target; reuse of sk_prot/callback pointers during release_sock/tcp_release_cb enables arbitrary write and control-flow hijacking primitives. A:H - The syzbot report shows refcount_warn_saturate on a dead socket during release_sock, and any sock UAF can oops/panic the kernel even when not fully exploited.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 20ae0cb8983b05136d5293c47fadc99a8ca8ca2d to < 4cabc3af4a6f36c222fecb15858c1060e59218e7 (affected · git)7e81a35302066c5a00b4c72d83e3ea4cad6eeb5b to < be719496ae6a7fc325e9e5056a52f63ebc84cc0c (affected · git)7e81a35302066c5a00b4c72d83e3ea4cad6eeb5b to < a443c55d96dede82a724df6e70a318ad15c199e1 (affected · git)7e81a35302066c5a00b4c72d83e3ea4cad6eeb5b to < e8b2b392a646bf5cb9413c1cc7a39d99c1b65a62 (affected · git)7e81a35302066c5a00b4c72d83e3ea4cad6eeb5b to < 5c3568166129bc73fd6b37748d2d8f95cd8f22f3 (affected · git)7e81a35302066c5a00b4c72d83e3ea4cad6eeb5b to < 0a182f8d607464911756b4dbef5d6cad8de22469 (affected · git)5.4.14 to < 5.4.229 (affected · semver)Default: unaffected Linux · cna
Linux Linux 5.5 (affected)0 to < 5.5 (unaffected · semver)5.4.229 through 5.4.* (unaffected · semver)5.10.163 through 5.10.* (unaffected · semver)5.15.86 through 5.15.* (unaffected · semver)6.0.16 through 6.0.* (unaffected · semver)6.1.2 through 6.1.* (unaffected · semver)6.2 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

2

Linux · cna

bpf, sockmap: fix race in sock_map_free()

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
7810805044b7e73400a3e43d4ceb5e70eb7081fc0c03d35d4286ac23e621bf46
Ingested
15 Oct 2026, 23:26:24 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected