CVE-2025-22058: Integer overflow in Linux kernel UDP memory accounting
- Vendor
- Linux
CVE-2025-22058 is an integer-overflow vulnerability in Linux kernel UDP receive-memory accounting. During socket destruction, udp_destruct_common() accumulates queued packets' skb->truesize values in an unsigned integer and passes the total to udp_rmem_release(), which accepts a signed integer. A sufficiently large receive queue can cause the total to become negative during conversion, corrupting calculations involving sk->sk_forward_alloc and incorrectly increasing accounted UDP memory rather than releasing it. The inflated accounting persists after socket closure and can cause allocation failures and UDP packet drops. On kernels with per-CPU memory-accounting reserves, the erroneous increase can be deferred until subsequent UDP reception.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Incorrectly inflated UDP memory accounting causes subsequent receive-memory allocations to fail once a socket's sk->sk_rmem_alloc exceeds net.ipv4.udp_rmem_min. This produces intermittent packet drops and can deny service to UDP-dependent applications, with effects persisting after the triggering application exits. Red Hat additionally assesses potential memory disclosure and system instability, although a disclosure mechanism is not established by the technical details. Code execution and privilege escalation are not demonstrated.
Mitigation
If you can’t patch tonight, do this now.
No established vulnerability-specific workaround is available; Red Hat states that no qualifying mitigation is available. Apply the vendor-provided kernel fix rather than relying on a temporary workaround.
Remediation
Patch, then assume compromise.
Install the distribution or appliance vendor's kernel update addressing CVE-2025-22058 and reboot into the fixed kernel where required. The upstream correction uses unsigned arithmetic for the affected calculation and calls sk_forward_alloc_add() only once for the small remaining delta. Fixed examples include RHEL 8 kernel 4.18.0-553.71.1.el8_10 and kernel-rt 4.18.0-553.71.1.rt7.412.el8_10, and RHEL 9.4 kernel 5.14.0-427.91.1.el9_4. Use the update appropriate to the installed product and support stream.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-22058 exploited in the wild?
- As of Nov 19, 2026, Mallory has no reports of CVE-2025-22058 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-22058?
- As of Nov 19, 2026, Mallory has found no public exploit for CVE-2025-22058.
- Is there a patch for CVE-2025-22058?
- Install the distribution or appliance vendor's kernel update addressing CVE-2025-22058 and reboot into the fixed kernel where required. The upstream correction uses unsigned arithmetic for the affected calculation and calls sk_forward_alloc_add() only once for the small remaining delta.
- What products are affected by CVE-2025-22058?
- Linux Kernel.
- How severe is CVE-2025-22058?
- CVE-2025-22058 has a CVSS v3.1 score of 5.5 (Medium) and an EPSS score of 0.30% (15th percentile) as of Nov 19, 2026.
Recent activity
19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.