{"id":"CVE-2025-39937","aliases":["CVE-2025-39937"],"related":[],"kind":"vulnerability","state":"published","title":"net: rfkill: gpio: Fix crash due to dereferencering uninitialized pointer","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: rfkill: gpio: Fix crash due to dereferencering uninitialized pointer\n\nSince commit 7d5e9737efda (\"net: rfkill: gpio: get the name and type from\ndevice property\") rfkill_find_type() gets called with the possibly\nuninitialized \"const char *type_name;\" local variable.\n\nOn x86 systems when rfkill-gpio binds to a \"BCM4752\" or \"LNV4752\"\nacpi_device, the rfkill->type is set based on the ACPI acpi_device_id:\n\n        rfkill->type = (unsigned)id->driver_data;\n\nand there is no \"type\" property so device_property_read_string() will fail\nand leave type_name uninitialized, leading to a potential crash.\n\nrfkill_find_type() does accept a NULL pointer, fix the potential crash\nby initializing type_name to NULL.\n\nNote likely sofar this has not been caught because:\n\n1. Not many x86 machines actually have a \"BCM4752\"/\"LNV4752\" acpi_device\n2. The stack happened to contain NULL where type_name is stored","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: rfkill: gpio: Fix crash due to dereferencering uninitialized pointer\n\nSince commit 7d5e9737efda (\"net: rfkill: gpio: get the name and type from\ndevice property\") rfkill_find_type() gets called with the possibly\nuninitialized \"const char *type_name;\" local variable.\n\nOn x86 systems when rfkill-gpio binds to a \"BCM4752\" or \"LNV4752\"\nacpi_device, the rfkill->type is set based on the ACPI acpi_device_id:\n\n        rfkill->type = (unsigned)id->driver_data;\n\nand there is no \"type\" property so device_property_read_string() will fail\nand leave type_name uninitialized, leading to a potential crash.\n\nrfkill_find_type() does accept a NULL pointer, fix the potential crash\nby initializing type_name to NULL.\n\nNote likely sofar this has not been caught because:\n\n1. Not many x86 machines actually have a \"BCM4752\"/\"LNV4752\" acpi_device\n2. The stack happened to contain NULL where type_name is stored","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet: rfkill: gpio: Soluciona un fallo debido a la desreferenciación de un puntero no inicializado\n\nDesde 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;'.\n\nEn 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:\n\n        rfkill->type = (unsigned)id->driver_data;\n\ny 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.\n\nrfkill_find_type() sí acepta un puntero NULL; soluciona el fallo potencial inicializando type_name a NULL.\n\nTenga en cuenta que probablemente hasta ahora esto no ha sido detectado porque:\n\n1. No muchas máquinas x86 realmente tienen un acpi_device 'BCM4752'/'LNV4752'\n2. La pila casualmente contenía NULL donde se almacena type_name","source":"nvd"}],"published":"2025-10-04T07:31:00.879Z","modified":"2026-11-05T22:17:35.143Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"7d5e9737efda16535e5b54bd627ef4881d11d31f","fixed":"184f608a68f96794e8fe58cd5535014d53622cde","status":"affected"},{"type":"git","introduced":"7d5e9737efda16535e5b54bd627ef4881d11d31f","fixed":"8793e7a8e1b60131a825457174ed6398111daeb7","status":"affected"},{"type":"git","introduced":"7d5e9737efda16535e5b54bd627ef4881d11d31f","fixed":"ada2282259243387e6b6e89239aeb4897e62f051","status":"affected"},{"type":"git","introduced":"7d5e9737efda16535e5b54bd627ef4881d11d31f","fixed":"47ade5f9d70b23a119ec20b1c6504864b2543a79","status":"affected"},{"type":"git","introduced":"7d5e9737efda16535e5b54bd627ef4881d11d31f","fixed":"689aee35ce671aab752f159e5c8e66d7685e6887","status":"affected"},{"type":"git","introduced":"7d5e9737efda16535e5b54bd627ef4881d11d31f","fixed":"21ba85d9d508422ca9e6698463ff9357c928c22d","status":"affected"},{"type":"git","introduced":"7d5e9737efda16535e5b54bd627ef4881d11d31f","fixed":"21a39b958b4bcf44f7674bfbbe1bbb8cad0d842d","status":"affected"},{"type":"git","introduced":"7d5e9737efda16535e5b54bd627ef4881d11d31f","fixed":"b6f56a44e4c1014b08859dcf04ed246500e310e5","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.6","status":"unaffected"},{"type":"semver","introduced":"5.4.300","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.245","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.194","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.154","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.108","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.49","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.9","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.6","fixed":"5.4.300"},{"status":"affected","introduced":"5.5","fixed":"5.10.245"},{"status":"affected","introduced":"5.11","fixed":"5.15.194"},{"status":"affected","introduced":"5.16","fixed":"6.1.154"},{"status":"affected","introduced":"6.2","fixed":"6.6.108"},{"status":"affected","introduced":"6.7","fixed":"6.12.49"},{"status":"affected","introduced":"6.13","fixed":"6.16.9"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/184f608a68f96794e8fe58cd5535014d53622cde","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8793e7a8e1b60131a825457174ed6398111daeb7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ada2282259243387e6b6e89239aeb4897e62f051","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/47ade5f9d70b23a119ec20b1c6504864b2543a79","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/689aee35ce671aab752f159e5c8e66d7685e6887","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/21ba85d9d508422ca9e6698463ff9357c928c22d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/21a39b958b4bcf44f7674bfbbe1bbb8cad0d842d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b6f56a44e4c1014b08859dcf04ed246500e310e5","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:13:07.142Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39937","url":"https://www.cve.org/CVERecord?id=CVE-2025-39937","licence":"CVE Terms of Use","modified":"2026-11-05T21:23:06.763Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39937","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39937","licence":"Public domain","modified":"2026-11-05T22:17:35.143Z"}],"updatedAt":"2026-11-25T22:59:05.518Z","epss":{"score":0.00151,"percentile":0.04513,"date":"2026-12-01T12:00:22.000Z"}}