Cyber Resilience

CVE-2026-31475

Memory Safety in Linux Kernel 6.14.9 – 6.15

Published
22 April 2026
Modified
27 April 2026
Patch / advisory
CVSS Score v3.1 7.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0013 3th percentile
Risk Priority 54 floored blend · peak EPSS

Summary

CVE-2026-31475 is a high-severity Double Free (CWE-415) vulnerability in Linux Linux Kernel. Its CVSS base score is 7.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Client Execution (T1203); ranked at the 3th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-8 (Security and Privacy Engineering Principles) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-31475 is a double free vulnerability (CWE-415) in the Linux kernel's ASoC sma1307 driver. The issue stems from a prior change in the sma1307_setting_loaded() function that introduced incorrect cleanup logic: it added NULL checks and manual kfree() calls on memory allocated via devm_kzalloc(), which is a device-managed allocation. This leads to a double free when the kernel's devres subsystem later automatically releases the same memory during device cleanup.

The vulnerability has a CVSS v3.1 base score of 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), indicating exploitation requires local access with low privileges and low complexity, with no user interaction needed. A successful attacker could achieve high impacts on confidentiality, integrity, and availability, potentially enabling arbitrary code execution, data corruption, or kernel crashes in affected systems using the sma1307 driver.

Mitigation is addressed in Linux kernel stable patches, such as those referenced in commits 1a82c3272626db9006f4c2cad3adf2916417aed6, d472d1a52985211b92883bb64bbe710b45980190, and fe757092d2329c397ecb32f2bf68a5b1c4bd9193 on git.kernel.org. These patches remove the erroneous manual kfree() loop in the error path of sma1307_setting_loaded(), relying instead on devres for proper cleanup of the devm_kzalloc() resources.

EU & UK References

Vulnerability Data

In the Linux kernel, the following vulnerability has been resolved: ASoC: sma1307: fix double free of devm_kzalloc() memory A previous change added NULL checks and cleanup for allocation failures in sma1307_setting_loaded(). However, the cleanup for mode_set entries is wrong. Those…

more

entries are allocated with devm_kzalloc(), so they are device-managed resources and must not be freed with kfree(). Manually freeing them in the error path can lead to a double free when devres later releases the same memory. Drop the manual kfree() loop and let devres handle the cleanup.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-31686Same product: Linux Linux Kernel
CVE-2023-52688Same product: Linux Linux Kernel
CVE-2026-43460Same product: Linux Linux Kernel
CVE-2023-53596Same product: Linux Linux Kernel
CVE-2025-38490Same product: Linux Linux Kernel
CVE-2026-23098Same product: Linux Linux Kernel
CVE-2024-41046Same product: Linux Linux Kernel
CVE-2024-53213Same product: Linux Linux Kernel
CVE-2024-26652Same product: Linux Linux Kernel
CVE-2026-23162Same product: Linux Linux Kernel

Affected Assets

linux
linux kernel
6.15, 7.0 · 6.14.9 — 6.15 · 6.15.1 — 6.18.21 · 6.19 — 6.19.11

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)
  • 1 hardening rule · 1 OS baseline
Validate
Prove the fix (OWASP ASVS)

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and evaluation explicitly includes dynamic analysis and fuzzing that locate double-free defects before release.

Security engineering principles can require memory-safe allocation patterns or language features that structurally eliminate double-free opportunities.

Flaw remediation processes require identification and correction of memory-management defects such as double free once discovered.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 full match
prevents

Secure SDLC practices directly prevent double-free errors via static analysis, safe memory APIs, and testing.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing in development can detect double-free conditions before release.

prevents

Secure development life cycle includes memory-safety practices that can prevent double-free bugs.

prevents

Application security requirements can mandate memory-safety rules that reduce double-free risk.

prevents

Secure system architecture and engineering principles can prescribe safe memory-management patterns.

prevents

Secure coding standards directly address proper use of free() and similar functions.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over `controls_xwalks` (authoritative rows only; rows rated `none` are excluded).

Oracle Linux 8 (1 rule)
  • V-248590 OL 8 must clear the page allocator to prevent use-after-free attacks. prevents CWE-415

References