{"id":"CVE-2025-39921","aliases":["CVE-2025-39921"],"related":[],"kind":"vulnerability","state":"published","title":"spi: microchip-core-qspi: stop checking viability of op->max_freq in supports_op callback","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: microchip-core-qspi: stop checking viability of op->max_freq in supports_op callback\n\nIn commit 13529647743d9 (\"spi: microchip-core-qspi: Support per spi-mem\noperation frequency switches\") the logic for checking the viability of\nop->max_freq in mchp_coreqspi_setup_clock() was copied into\nmchp_coreqspi_supports_op(). Unfortunately, op->max_freq is not valid\nwhen this function is called during probe but is instead zero.\nAccordingly, baud_rate_val is calculated to be INT_MAX due to division\nby zero, causing probe of the attached memory device to fail.\n\nSeemingly spi-microchip-core-qspi was the only driver that had such a\nmodification made to its supports_op callback when the per_op_freq\ncapability was added, so just remove it to restore prior functionality.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: microchip-core-qspi: stop checking viability of op->max_freq in supports_op callback\n\nIn commit 13529647743d9 (\"spi: microchip-core-qspi: Support per spi-mem\noperation frequency switches\") the logic for checking the viability of\nop->max_freq in mchp_coreqspi_setup_clock() was copied into\nmchp_coreqspi_supports_op(). Unfortunately, op->max_freq is not valid\nwhen this function is called during probe but is instead zero.\nAccordingly, baud_rate_val is calculated to be INT_MAX due to division\nby zero, causing probe of the attached memory device to fail.\n\nSeemingly spi-microchip-core-qspi was the only driver that had such a\nmodification made to its supports_op callback when the per_op_freq\ncapability was added, so just remove it to restore prior functionality.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nspi: microchip-core-qspi: dejar de comprobar la viabilidad de op->max_freq en la función de callback supports_op\n\nEn el commit 13529647743d9 ('spi: microchip-core-qspi: Soporte para conmutadores de frecuencia de operación por spi-mem'), la lógica para comprobar la viabilidad de op->max_freq en mchp_coreqspi_setup_clock() fue copiada a mchp_coreqspi_supports_op(). Desafortunadamente, op->max_freq no es válido cuando esta función es llamada durante la fase de 'probe', sino que es cero. En consecuencia, baud_rate_val se calcula como INT_MAX debido a una división por cero, lo que provoca que la detección ('probe') del dispositivo de memoria adjunto falle.\n\nAparentemente, spi-microchip-core-qspi fue el único controlador al que se le hizo tal modificación en su callback supports_op cuando se añadió la capacidad per_op_freq, así que simplemente se elimina para restaurar la funcionalidad anterior.","source":"nvd"}],"published":"2025-10-01T07:55:16.540Z","modified":"2026-10-21T13:18:16.753Z","severity":{"scorer":"CISA-ADP","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":"CISA-ADP","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"},{"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":[],"affected":[{"ranges":[{"type":"git","introduced":"d29f749d5202605dbb7480791e6841487d8afb77","fixed":"4ad071e3d57967f7ab483aed0687468bc1d9e9ce","status":"affected"},{"type":"git","introduced":"13529647743d906ed3cf991f1d77727e7ff1fb6f","fixed":"ac8a13f35d5b8996582b3f97b924838a5c570c18","status":"affected"},{"type":"git","introduced":"13529647743d906ed3cf991f1d77727e7ff1fb6f","fixed":"89e7353f522f5cf70cb48c01ce2dcdcb275b8022","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.16.6","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":"6.14","fixed":"6.16.6"},{"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/4ad071e3d57967f7ab483aed0687468bc1d9e9ce","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ac8a13f35d5b8996582b3f97b924838a5c570c18","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/89e7353f522f5cf70cb48c01ce2dcdcb275b8022","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-14T17:43:20.240Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39921","url":"https://www.cve.org/CVERecord?id=CVE-2025-39921","licence":"CVE Terms of Use","modified":"2026-10-21T12:37:34.547Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39921","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39921","licence":"Public domain","modified":"2026-10-21T13:18:16.753Z"}],"updatedAt":"2026-11-25T22:59:05.394Z","epss":{"score":0.00195,"percentile":0.09628,"date":"2026-12-01T12:00:22.000Z"}}