CVE-2026-31475
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| sles | affected | | |
| debian | bookworm | fixed | 0 |
| debian | bullseye | fixed | 0 |
| debian | forky | fixed | 6.19.11-1 |
| debian | sid | fixed | 6.19.11-1 |
| debian | trixie | fixed | 0 |
| linux-kernel | affected | 6.15 | |
| linux-kernel | 6.15 | affected | |
| linux-kernel | 7.0 | affected | |
References
- https://git.kernel.org/stable/c/1a82c3272626db9006f4c2cad3adf2916417aed6
- https://git.kernel.org/stable/c/d472d1a52985211b92883bb64bbe710b45980190
- https://git.kernel.org/stable/c/fe757092d2329c397ecb32f2bf68a5b1c4bd9193
- https://www.suse.com/security/cve/CVE-2026-31475.html
- https://security-tracker.debian.org/tracker/CVE-2026-31475
CWEs
CWE-415
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.