CVE-2023-53585: bpf: reject unhashed sockets in bpf_sk_assign
Noroxi assessment
Priority: Monitor (action score 22/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.16% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: Linux Linux 3d4522f59fb748a54446846522941a4f09da63e9, 67312adc96b5a585970d03b62412847afe2c6b01, 791a12102e5191dcb6ce0b3a99d71b5a2802d12a.
Low priority for now. Upgrade to Linux Linux 3d4522f59fb748a54446846522941a4f09da63e9, 67312adc96b5a585970d03b62412847afe2c6b01, 791a12102e5191dcb6ce0b3a99d71b5a2802d12a or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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().
- Published
- Oct 4, 2025
- Updated
- Jun 17, 2026
- EPSS
- 0.1% · 5th percentile
- CWE
- —
Report tools
Action score
22
Monitor
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.1%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Running WordPress? Scan your site free with WP Lens
Noroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- linux linux kernel5.7 and later · before 5.10.195
- linux linux kernel5.11 and later · before 5.15.132
- linux linux kernel5.16 and later · before 6.1.53
- linux linux kernel6.2 and later · before 6.4.16
- linux linux kernel6.5 and later · before 6.5.3
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.
Linux Linux
- 5.7affected
- cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 and later · before 791a12102e5191dcb6ce0b3a99d71b5a2802d12aaffected · git
- cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 and later · before 7dcbc0bb0e5cc1823923744befce59ac353135e6affected · git
- cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 and later · before c0ce0fb76610d5fad31f56f2ca8241a2a6717a1baffected · git
- cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 and later · before 8aa43cfbb68b25119d2ced14ec717173e2901fa2affected · git
- cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 and later · before 3d4522f59fb748a54446846522941a4f09da63e9affected · git
- cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449 and later · before 67312adc96b5a585970d03b62412847afe2c6b01affected · git
- before 5.7not affected · semver
- 5.10.195 and later · up to and including 5.10.*not affected · semver
- 5.15.132 and later · up to and including 5.15.*not affected · semver
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | linux | before 6.1.55-1 | 6.1.55-1 |
| Debian:13 | linux | before 6.5.3-1 | 6.5.3-1 |
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
Published before and after this one in the same product
- ← EarlierCVE-2023-53583Oct 4, 2025 · perf: RISC-V: Remove PERF_HES_STOPPED flag checking in riscv_pmu_start()22Monitor
- ← EarlierCVE-2023-53584Oct 4, 2025 · ubifs: ubifs_releasepage: Remove ubifs_assert(0) to valid this process22Monitor
- Later →CVE-2023-53586Oct 4, 2025 · scsi: target: Fix multiple LUN_RESET handling18Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 3d4522f59fb748a54446846522941a4f09da63e9 | Vendor (CNA) |
| Linux Linux | 67312adc96b5a585970d03b62412847afe2c6b01 | Vendor (CNA) |
| Linux Linux | 791a12102e5191dcb6ce0b3a99d71b5a2802d12a | Vendor (CNA) |
| Linux Linux | 7dcbc0bb0e5cc1823923744befce59ac353135e6 | Vendor (CNA) |
| Linux Linux | 8aa43cfbb68b25119d2ced14ec717173e2901fa2 | Vendor (CNA) |
| Linux Linux | c0ce0fb76610d5fad31f56f2ca8241a2a6717a1b | Vendor (CNA) |
| debian:linux | 6.1.55-1 · Debian:12 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
No history yet (it accumulates with the daily EPSS job).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
—
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (5 more)Show less
- git.kernel.org/stable/c/67312adc96b5a585970d03b62412847afe2c6b01
- git.kernel.org/stable/c/791a12102e5191dcb6ce0b3a99d71b5a2802d12a
- git.kernel.org/stable/c/7dcbc0bb0e5cc1823923744befce59ac353135e6
- git.kernel.org/stable/c/8aa43cfbb68b25119d2ced14ec717173e2901fa2
- git.kernel.org/stable/c/c0ce0fb76610d5fad31f56f2ca8241a2a6717a1b
Vendor advisories and official records. Exploit/PoC links are deliberately left out.