Junglewise Threat Intelligence

CVE-2025-68724: Linux Kernel buffer overflow in asymmetric_key_generate_id

CVE-2025-68724 · Severity: info · CVSS 0 · Published 2025-12-24

Technologies: Linux Kernel, Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP. Vendors: Linux, Siemens.

Executive brief

A vulnerability in the Linux kernel's handling of digital security certificates could allow a system crash or memory corruption. The issue occurs when the system processes specially crafted X.509 certificates with unusually large data fields, such as serial numbers or issuer names. This could potentially be used by an attacker to disrupt operations or gain unauthorized access to systems relying on these certificates for secure communication.

Technical details

An integer overflow vulnerability exists in the 'asymmetric_key_generate_id' function within the Linux kernel's crypto subsystem. The root cause is a lack of overflow validation when calculating the total size required for an 'asymmetric_key_id' structure plus its associated binary blob lengths (val_1 and val_2). An attacker providing a malicious X.509 certificate with arbitrarily large ASN.1 INTEGER serial numbers or issuer names can trigger this overflow, resulting in an undersized memory allocation via kmalloc and a subsequent buffer overflow during the memcpy operation. The fix introduces 'check_add_overflow()' to validate these calculations before allocation.

Affected products

  • Linux Linux Kernel 7901c1a8effb to 6.12.y
  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.6 and earlier

Timeline

  • 2025-10-13: other: Patch authored
  • 2025-12-24: disclosed: CVE published
  • 2025-12-18: patched: Fix committed to stable branches

References

Related threats