Service interruption via sockmap allocation misaccounting
Published May 1, 2025 · Updated May 23, 2026
Incorrect resource accounting in Linux kernel sockmap code allows local users to interrupt service through a crafted BPF socket-map send. The tcp_bpf.c send path compares apply_bytes against a length derived from msg->sg.size, then assigns psock->apply_bytes, leaving sk_forward_alloc inconsistent when queues are destroyed. Reachability requires local low-privileged access and a sockmap path with apply_bytes and more_data; the documented consequence is availability loss without data disclosure or modification.
Summary
What happened
Incorrect resource accounting in Linux kernel sockmap code allows local users to interrupt service through a crafted BPF socket-map send. The tcp_bpf.c send path compares apply_bytes against a length derived from msg->sg.size, then assigns psock->apply_bytes, leaving sk_forward_alloc inconsistent when queues are destroyed. Reachability requires local low-privileged access and a sockmap path with apply_bytes and more_data; the documented consequence is availability loss without data disclosure or modification.
The record
- CVE
- CVE-2022-49877
- Published
- May 1, 2025
- Updated
- May 23, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- May 1, 2025CVE publishedPublication date reported by the CVE source.
- May 23, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=168ff181f5b6e7fce684c98a30d35da1dbf8f82a <95adbd2ac8de82e43fd6b347e7e1b47f74dc1abb
- Affected versionversion=244ce90c8d0bd10ebf957da02c6f3fcd5d920bdf <d975bec1eaeb52341acc9273db79ddb078220399
- Affected versionversion=5.10.110 <5.10.155
- Affected versionversion=5.15.33 <5.15.79
- Affected versionversion=5.16.19 <5.17
- Affected versionversion=5.17.2 <5.18
- Affected versionversion=5.18
- Affected versionversion=5.4.189 <5.4.225
- Affected versionversion=7b812a369e6416ab06d83cdd39d8e3f752781dd0 <cc21dc48a78cc9e5af9a4d039cd456446a6e73ff
- Affected versionversion=84472b436e760ba439e1969a9e3c5ae7c86de39d <14e8bc3bf7bd6af64d7538a0684c8238d96cdfd7
- Affected versionversion=84472b436e760ba439e1969a9e3c5ae7c86de39d <8ec95b94716a1e4d126edc3fb2bc426a717e2dba
- Affected versionversion=87d532d41ef937e16f61b3d2094f3a2ac49be365
- Affected versionversion=abb4caa477a5450817d2aa1198edce66450aecf8
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo