CVE-2026-31475

Source
https://cve.org/CVERecord?id=CVE-2026-31475
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31475.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-31475
Downstream
Published
2026-04-22T13:54:04Z
Modified
2026-10-08T02:50:42Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
ASoC: sma1307: fix double free of devm_kzalloc() memory
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31475.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0ec6bd16705fe21d6429d6b8f7981eae2142bba8
Fixed
d472d1a52985211b92883bb64bbe710b45980190
Fixed
1a82c3272626db9006f4c2cad3adf2916417aed6
Fixed
fe757092d2329c397ecb32f2bf68a5b1c4bd9193
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6.14.9
Fixed
6.15
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f8434b8ba437d3f6cbcd9ffe8405bd16ed28fc5c

Affected versions

v6.*
v6.14.10
v6.14.11
v6.14.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31475.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.15.0
Fixed
6.18.21
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.11

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31475.json"