Description
In the Linux kernel, the following vulnerability has been resolved:

netfilter: conntrack: remove sprintf usage

Replace it with scnprintf, the buffer sizes are expected to be large enough
to hold the result, no need for snprintf+overflow check.

Increase buffer size in mangle_content_len() while at it.

BUG: KASAN: stack-out-of-bounds in vsnprintf+0xea5/0x1270
Write of size 1 at addr [..]
vsnprintf+0xea5/0x1270
sprintf+0xb1/0xe0
mangle_content_len+0x1ac/0x280
nf_nat_sdp_session+0x1cc/0x240
process_sdp+0x8f8/0xb80
process_invite_request+0x108/0x2b0
process_sip_msg+0x5da/0xf50
sip_help_tcp+0x45e/0x780
nf_confirm+0x34d/0x990
[..]
Published: 2026-06-24
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A stack‑based buffer overflow originates in the netfilter conntrack subsystem of the Linux kernel, triggered by an unsafe sprintf call during the handling of certain packet contents. The code uses the size‑limited versusnprintf infrastructure, yet the buffer is not protected, causing a stack‑out‑of‑bounds write as identified by KASAN. This flaw can corrupt kernel memory and enables arbitrary execution of code with kernel privileges. The vulnerability is a classic CWE‑120 buffer overflow.

Affected Systems

All Linux kernel builds that include the netfilter conntrack module and have not yet incorporated the commit that replaces sprintf with scnprintf. The impact is not limited to a specific distribution or version; any kernel prior to that change is potentially vulnerable.

Risk and Exploitability

The EPSS score is not provided and the flaw is not listed in the CISA KEV catalog, yet the severity is high because kernel memory corruption can lead to remote code execution. Exploitation would require an attacker to send a specially crafted packet that exercises the vulnerable path. Based on the description, the likely attack vector is network‑based, enabling a remote host to trigger the overflow by targeting SIP/SDP traffic to the host. This attack vector is inferred, as it is not explicitly documented in the data.

Generated by OpenCVE AI on June 24, 2026 at 19:39 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version containing the netfilter conntrack fix that removes the unsafe sprintf usage and enlarges the buffer.
  • If a kernel update cannot be performed immediately, cherry‑pick the patch that replaces sprintf with scnprintf in the conntrack code and rebuild the kernel.
  • As a temporary defense, restrict or block incoming SIP/SDP traffic with firewall rules to reduce exposure to the vulnerable code path.

Generated by OpenCVE AI on June 24, 2026 at 19:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 24 Jun 2026 20:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-120

Wed, 24 Jun 2026 17:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: netfilter: conntrack: remove sprintf usage Replace it with scnprintf, the buffer sizes are expected to be large enough to hold the result, no need for snprintf+overflow check. Increase buffer size in mangle_content_len() while at it. BUG: KASAN: stack-out-of-bounds in vsnprintf+0xea5/0x1270 Write of size 1 at addr [..] vsnprintf+0xea5/0x1270 sprintf+0xb1/0xe0 mangle_content_len+0x1ac/0x280 nf_nat_sdp_session+0x1cc/0x240 process_sdp+0x8f8/0xb80 process_invite_request+0x108/0x2b0 process_sip_msg+0x5da/0xf50 sip_help_tcp+0x45e/0x780 nf_confirm+0x34d/0x990 [..]
Title netfilter: conntrack: remove sprintf usage
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-24T16:29:14.391Z

Reserved: 2026-06-09T07:44:35.377Z

Link: CVE-2026-53002

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-25T01:30:15Z

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')