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-2023-53585

published

bpf: reject unhashed sockets in bpf_sk_assign

Published
04 Oct 2025, 15:44:01 UTC
Updated
11 May 2026, 19:47:54 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxcf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 to < 791a12102e5191dcb6ce0b3a99d71b5a2802d12a · cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 to < 7dcbc0bb0e5cc1823923744befce59ac353135e6 · cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 to < c0ce0fb76610d5fad31f56f2ca8241a2a6717a1b · cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 to < 8aa43cfbb68b25119d2ced14ec717173e2901fa2 · cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 to < 3d4522f59fb748a54446846522941a4f09da63e9 · cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 to < 67312adc96b5a585970d03b62412847afe2c6b01 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.7 (affected) · 0 to < 5.7 (unaffected · semver) · 5.10.195 through 5.10.* (unaffected · semver) · 5.15.132 through 5.15.* (unaffected · semver) · 6.1.53 through 6.1.* (unaffected · semver) · 6.4.16 through 6.4.* (unaffected · semver) · 6.5.3 through 6.5.* (unaffected · semver) · 6.6 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-040 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2023-027 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Red Hat Enterprise Linux RHEL-8 bpftoolaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 bpftoolppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Show 99 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluationALAS2023-2023-356 Fixed Not stated Amazon Linux assessment
Red Hat Enterprise Linux RHEL-8 bpftools390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 bpftoolx86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfoppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfos390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 bpftool-debuginfox86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernelaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernelppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernels390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernelsrc Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernelx86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-abi-whitelistsnoarch Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-coreaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-coreppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-cores390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-corex86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debugaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debugppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debugs390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debugx86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-coreaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-coreppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-cores390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-corex86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfoaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfoppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfos390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-debuginfox86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-develaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-develppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-devels390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-develx86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-modulesaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-modulesppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-moduless390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-modulesx86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extraaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extrappc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extras390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debug-modules-extrax86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debuginfoaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debuginfoppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debuginfos390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debuginfox86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-aarch64aarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-ppc64leppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-s390xs390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-debuginfo-common-x86_64x86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-develaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-develppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-devels390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-develx86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-docnoarch Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-modulesaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-modulesppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-moduless390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-modulesx86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-modules-extraaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-modules-extrappc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-modules-extras390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-modules-extrax86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-toolsaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-toolsppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-toolss390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-toolsx86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfoaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfoppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfos390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-tools-debuginfox86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-tools-libsaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-tools-libsppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-tools-libsx86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdumps390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-cores390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-debuginfos390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-devels390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-moduless390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 kernel-zfcpdump-modules-extras390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 perfaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 perfppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 perfs390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 perfx86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 perf-debuginfoaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 perf-debuginfoppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 perf-debuginfos390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 perf-debuginfox86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 python3-perfaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 python3-perfppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 python3-perfs390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 python3-perfx86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfoaarch64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfoppc64le Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfos390x Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-8 python3-perf-debuginfox86_64 Advisory build 4.18.0-240.el8 RHSA-2020:4431
Red Hat Enterprise Linux RHEL-9 bpftoolaarch64 Advisory build 7.3.0-427.13.1.el9_4 RHSA-2024:2394
Red Hat Enterprise Linux RHEL-9 bpftoolppc64le Advisory build 7.3.0-427.13.1.el9_4 RHSA-2024:2394
Red Hat Enterprise Linux RHEL-9 bpftools390x Advisory build 7.3.0-427.13.1.el9_4 RHSA-2024:2394
Red Hat Enterprise Linux RHEL-9 bpftoolx86_64 Advisory build 7.3.0-427.13.1.el9_4 RHSA-2024:2394

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: reject unhashed sockets in bpf_sk_assign The semantics for bpf_sk_assign are as follows: sk = some_lookup_func() bpf_sk_assign(skb, sk) bpf_sk_release(sk) That is, the sk is not consumed by bpf_sk_assign. The function therefore needs to make sure that sk lives long enough to be consumed from __inet_lookup_skb. The path through the stack for a TCPv4 packet is roughly: netif_receive_skb_core: takes RCU read lock __netif_receive_skb_core: sch_handle_ingress: tcf_classify: bpf_sk_assign() deliver_ptype_list_skb: deliver_skb: ip_packet_type->func == ip_rcv: ip_rcv_core: ip_rcv_finish_core: dst_input: ip_local_deliver: ip_local_deliver_finish: ip_protocol_deliver_rcu: tcp_v4_rcv: __inet_lookup_skb: skb_steal_sock The existing helper takes advantage of the fact that everything happens in the same RCU critical section: for sockets with SOCK_RCU_FREE set bpf_sk_assign never takes a reference. skb_steal_sock then checks SOCK_RCU_FREE again and does sock_put if necessary. This approach assumes that SOCK_RCU_FREE is never set on a sk between bpf_sk_assign and skb_steal_sock, but this invariant is violated by unhashed UDP sockets. A new UDP socket is created in TCP_CLOSE state but without SOCK_RCU_FREE set. That flag is only added in udp_lib_get_port() which happens when a socket is bound. When bpf_sk_assign was added it wasn't possible to access unhashed UDP sockets from BPF, so this wasn't a problem. This changed in commit 0c48eefae712 ("sock_map: Lift socket state restriction for datagram sockets"), but the helper wasn't adjusted accordingly. The following sequence of events will therefore lead to a refcount leak: 1. Add socket(AF_INET, SOCK_DGRAM) to a sockmap. 2. Pull socket out of sockmap and bpf_sk_assign it. Since SOCK_RCU_FREE is not set we increment the refcount. 3. bind() or connect() the socket, setting SOCK_RCU_FREE. 4. skb_steal_sock will now set refcounted = false due to SOCK_RCU_FREE. 5. tcp_v4_rcv() skips sock_put(). Fix the problem by rejecting unhashed sockets in bpf_sk_assign(). This matches the behaviour of __inet_lookup_skb which is ultimately the goal of bpf_sk_assign().

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

14

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 to < 791a12102e5191dcb6ce0b3a99d71b5a2802d12a (affected · git)cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 to < 7dcbc0bb0e5cc1823923744befce59ac353135e6 (affected · git)cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 to < c0ce0fb76610d5fad31f56f2ca8241a2a6717a1b (affected · git)cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 to < 8aa43cfbb68b25119d2ced14ec717173e2901fa2 (affected · git)cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 to < 3d4522f59fb748a54446846522941a4f09da63e9 (affected · git)cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 to < 67312adc96b5a585970d03b62412847afe2c6b01 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.7 (affected)0 to < 5.7 (unaffected · semver)5.10.195 through 5.10.* (unaffected · semver)5.15.132 through 5.15.* (unaffected · semver)6.1.53 through 6.1.* (unaffected · semver)6.4.16 through 6.4.* (unaffected · semver)6.5.3 through 6.5.* (unaffected · semver)6.6 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

6

Provider assertions

1

Linux · cna

bpf: reject unhashed sockets in bpf_sk_assign

Provenance

Schema
5.2
Searchable
yes
Content hash
fa96972166a2756aab398a7d189fba931278d1e318134fa4b4c7e245a454b164
Ingested
23 Sep 2026, 08:14:56 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