Skip to main content
Mallory
MediumVulnerability

CVE-2025-22058: Integer overflow in Linux kernel UDP memory accounting

Published Apr 16, 2025 · Updated 9 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS5.5Medium · v3.1
EPSS0.30%15th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Linux
IdentifiersCVE-2025-22058CWE-190

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
LinuxLinux Kerneloperating_system
FAQ

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.
Activity feed

Recent activity

19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable cloud security pluginsNews · Oct 11, 2026Google: sys-kernel/csql-kernel-6_1, sys-kernel/lakitu-kernel-5... | Tenable®A Linux kernel UDP memory-accounting integer overflow can incorrectly inflate recorded memory usage, causing subsequent memory allocations to fail and UDP packets to be dropped. The advisory assigns CVSS v3 severity 5.5, with local access and low privileges required and high availability impact. It includes a reproduction script but separately states that no known exploits are available.Read more ↗tenable cloud security pluginsNews · Oct 3, 2026Google: sys-kernel/csql-kernel-6_1, sys-kernel/csql-kernel-6_6... | Tenable®A Linux kernel UDP memory-accounting vulnerability triggered by integer overflow when releasing a socket's receive-buffer memory. Incorrect accounting can persist after socket closure and cause UDP packet drops, affecting availability. The reference assigns a CVSS v3 score of 5.5 and describes a local attack requiring privileges. It includes a reproduction script but explicitly reports that no known exploits are available.Read more ↗tenable nessus pluginsNews · Sep 6, 2026Unity Linux 20.1050a Security Update: kernel (UTSA-2026-053298) | Tenable®A locally exploitable vulnerability requiring low privileges and no user interaction that can cause high availability impact, with no stated confidentiality or integrity impact.Read more ↗redhat accessNews · Jan 1, 2026RHSA-2025:22752 - Security Advisory - Red Hat Customer PortalLinux kernel UDP memory accounting leak.Read more ↗
+13 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.