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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*

History

11 Nov 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ASoC: sma1307: corrige doble liberación de memoria devm_kzalloc() Un cambio anterior añadió comprobaciones de NULL y limpieza para fallos de asignación en sma1307_setting_loaded(). Sin embargo, la limpieza para las entradas mode_set es incorrecta. Esas entradas se asignan con devm_kzalloc(), por lo que son recursos gestionados por el dispositivo y no deben liberarse con kfree(). Liberarlas manualmente en la ruta de error puede llevar a una doble liberación cuando devres libere posteriormente la misma memoria. Eliminar el bucle kfree() manual y dejar que devres gestione la limpieza.

27 Apr 2026, 23:25

Type Values Removed Values Added
CWE CWE-415
First Time Linux linux Kernel
Linux
CPE cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.15:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*
References () https://git.kernel.org/stable/c/1a82c3272626db9006f4c2cad3adf2916417aed6 - () https://git.kernel.org/stable/c/1a82c3272626db9006f4c2cad3adf2916417aed6 - Patch
References () https://git.kernel.org/stable/c/d472d1a52985211b92883bb64bbe710b45980190 - () https://git.kernel.org/stable/c/d472d1a52985211b92883bb64bbe710b45980190 - Patch
References () https://git.kernel.org/stable/c/fe757092d2329c397ecb32f2bf68a5b1c4bd9193 - () https://git.kernel.org/stable/c/fe757092d2329c397ecb32f2bf68a5b1c4bd9193 - Patch

27 Apr 2026, 14:16

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.8

22 Apr 2026, 14:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-22 14:16

Updated : 2026-11-11 23:10


NVD link : CVE-2026-31475

Mitre link : CVE-2026-31475

CVE.ORG link : CVE-2026-31475


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-415

Double Free