Junglewise Threat Intelligence

CVE-2025-68742: Linux Kernel invalid memory access in BPF program statistics

CVE-2025-68742 · Severity: info · CVSS 5.5 · 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 BPF (Berkeley Packet Filter) subsystem could allow a local attacker to cause a system crash. The issue occurs when the system fails to properly handle memory during certain internal updates, leading to an invalid memory access. This primarily impacts system availability and could lead to a denial-of-service condition on affected devices, including certain industrial controllers.

Technical details

A NULL pointer dereference or invalid memory access vulnerability exists in the Linux kernel BPF subsystem. When 'update_effective_progs' fails (e.g., due to memory allocation failure during fault injection), the kernel may replace a valid BPF program with a 'dummy_bpf_prog'. If a softirq occurs subsequently, the kernel attempts to access 'prog->stats' on this dummy program, which may be NULL, triggering an invalid access in '__bpf_prog_run'. The fix involves adding a check to skip statistics updates if the stats pointer is NULL. This issue affects various stable kernel branches and has been observed in Siemens SIMATIC S7-1500 MFP devices using affected kernel versions.

Affected products

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

Timeline

  • 2025-11-15: disclosed: Initial patch submitted by Pu Lehui
  • 2025-12-18: patched: Commits merged into stable branches
  • 2025-12-24: advisory: CVE-2025-68742 published

References

Related threats