Double Free in Linux
CVE-2026-31475
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 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.
Vulnerability class: Double Free
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.002 (6.0th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 6th percentile — 6.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.001 · newest: 0.002 · change: +0.000
Affected products
- Linux — versions 6.19.11, f8434b8ba437d3f6cbcd9ffe8405bd16ed28fc5c, 6.14.9
- Linux Kernel — versions 6.15, 7.0
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-31475?
- CVE-2026-31475 is a high-severity vulnerability in Linux, classified under Double Free. CVSS score: 7.8/10. Published 2026-04-22.
- How severe is CVE-2026-31475?
- High severity. CVSS v3 base score is 7.8 out of 10.