CVE-2025-37887
JSON

7.1high

pds_core: handle unsupported PDS_CORE_CMD_FW_CONTROL result

Severity
7.1high CVSS:3.1 by Linux
Exploit likelihood
0.29% (higher than 22% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: pds_core: handle unsupported PDS_CORE_CMD_FW_CONTROL result If the FW doesn't support the PDS_CORE_CMD_FW_CONTROL command the driver might at the least print garbage and at the worst crash when the user runs the "devlink dev info" devlink command. This happens because the stack variable fw_list is not 0 initialized which results in fw_list.num_fw_slots being a garbage value from the stack. Then the driver tries to access fw_list.fw_names[i] with i >= ARRAY_SIZE and runs off the end of the array. Fix this by initializing the fw_list and by not failing completely if the devcmd fails because other useful information is printed via devlink dev info even if the devcmd fails.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 45d76f492938cdc27ddadc16e1e75103f4cfbf56 before cdd784c96fe2e5edbf0ed9b3e96fe776e8092385, from 45d76f492938cdc27ddadc16e1e75103f4cfbf56 before 6702f5c6b22deaa95bf84f526148174a160a02cb, from 45d76f492938cdc27ddadc16e1e75103f4cfbf56 before 12a4651a80dbe4589a84e26785fbbe1ed4d043b7, from 45d76f492938cdc27ddadc16e1e75103f4cfbf56 before 2567daad69cd1107fc0ec29b1615f110d7cf7385, 6.4
Not affected: before 6.4, from 6.6.89 up to 6.6.*, from 6.12.26 up to 6.12.*, from 6.14.5 up to 6.14.*, from 6.15 up to *
CVE List
linux linux_kernelfrom 6.4 before 6.6.89, from 6.7 before 6.12.26, from 6.13 before 6.14.5, 6.15NVD

All scores

Linux7.1high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: pds_core: handle unsupported PDS_CORE_CMD_FW_CONTROL result If the FW doesn't support the PDS_CORE_CMD_FW_CONTROL command the driver might at the least print garbage and at the worst crash when the user runs the "devlink dev info" devlink command. This happens because the stack variable fw_list is not 0 initialized which results in fw_list.num_fw_slots being a garbage value from the stack. Then the driver tries to access fw_list.fw_names[i] with i >= ARRAY_SIZE and runs off the end of the array. Fix this by initializing the fw_list and by not failing completely if the devcmd fails because other useful information is printed via devlink dev info even if the devcmd fails.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: pds_core: manejar resultados PDS_CORE_CMD_FW_CONTROL no compatibles. Si el firmware no admite el comando PDS_CORE_CMD_FW_CONTROL, el controlador podría, como mínimo, imprimir información no válida y, en el peor de los casos, bloquearse cuando el usuario ejecuta el comando "devlink dev info". Esto ocurre porque la variable de pila fw_list no se inicializa a 0, lo que hace que fw_list.num_fw_slots sea un valor no válido de la pila. A continuación, el controlador intenta acceder a fw_list.fw_names[i] con i >= ARRAY_SIZE y se ejecuta desde el final de la matriz. Para solucionar esto, inicialice fw_list y evite fallar por completo si devcmd falla, ya que se imprime otra información útil mediante devlink dev info incluso si devcmd falla.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-37887 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-37887 changed 2026-07-30Public domain