CVE-2025-39937

In the Linux kernel, the following vulnerability has been resolved: net: rfkill: gpio: Fix crash due to dereferencering uninitialized pointer Since commit 7d5e9737efda ("net: rfkill: gpio: get the name and type from device property") rfkill_find_type() gets called with the possibly uninitialized "const char *type_name;" local variable. On x86 systems when rfkill-gpio binds to a "BCM4752" or "LNV4752" acpi_device, the rfkill->type is set based on the ACPI acpi_device_id: rfkill->type = (unsigned)id->driver_data; and there is no "type" property so device_property_read_string() will fail and leave type_name uninitialized, leading to a potential crash. rfkill_find_type() does accept a NULL pointer, fix the potential crash by initializing type_name to NULL. Note likely sofar this has not been caught because: 1. Not many x86 machines actually have a "BCM4752"/"LNV4752" acpi_device 2. The stack happened to contain NULL where type_name is stored
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:*:*:*:*:*:*:*:*
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.17:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.17:rc6:*:*:*:*:*:*

History

19 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: rfkill: gpio: Soluciona un fallo debido a la desreferenciación de un puntero no inicializado Desde el commit 7d5e9737efda ('net: rfkill: gpio: obtener el nombre y el tipo de la propiedad del dispositivo'), se llama a rfkill_find_type() con la variable local posiblemente no inicializada 'const char *type_name;'. En sistemas x86, cuando rfkill-gpio se enlaza a un acpi_device 'BCM4752' o 'LNV4752', el rfkill->type se establece basándose en el acpi_device_id de ACPI: rfkill->type = (unsigned)id->driver_data; y no hay una propiedad 'type', por lo que device_property_read_string() fallará y dejará type_name sin inicializar, lo que lleva a un fallo potencial. rfkill_find_type() sí acepta un puntero NULL; soluciona el fallo potencial inicializando type_name a NULL. Tenga en cuenta que probablemente hasta ahora esto no ha sido detectado porque: 1. No muchas máquinas x86 realmente tienen un acpi_device 'BCM4752'/'LNV4752' 2. La pila casualmente contenía NULL donde se almacena type_name

Information

Published : 2025-10-04 08:15

Updated : 2026-10-19 21:10


NVD link : CVE-2025-39937

Mitre link : CVE-2025-39937

CVE.ORG link : CVE-2025-39937


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-476

NULL Pointer Dereference