{"id":"CVE-2026-31487","aliases":["CVE-2026-31487"],"related":[],"kind":"vulnerability","state":"published","title":"spi: use generic driver_override infrastructure","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: use generic driver_override infrastructure\n\nWhen a driver is probed through __driver_attach(), the bus' match()\ncallback is called without the device lock held, thus accessing the\ndriver_override field without a lock, which can cause a UAF.\n\nFix this by using the driver-core driver_override infrastructure taking\ncare of proper locking internally.\n\nNote that calling match() from __driver_attach() without the device lock\nheld is intentional. [1]\n\nAlso note that we do not enable the driver_override feature of struct\nbus_type, as SPI - in contrast to most other buses - passes \"\" to\nsysfs_emit() when the driver_override pointer is NULL. Thus, printing\n\"\\n\" instead of \"(null)\\n\".","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: use generic driver_override infrastructure\n\nWhen a driver is probed through __driver_attach(), the bus' match()\ncallback is called without the device lock held, thus accessing the\ndriver_override field without a lock, which can cause a UAF.\n\nFix this by using the driver-core driver_override infrastructure taking\ncare of proper locking internally.\n\nNote that calling match() from __driver_attach() without the device lock\nheld is intentional. [1]\n\nAlso note that we do not enable the driver_override feature of struct\nbus_type, as SPI - in contrast to most other buses - passes \"\" to\nsysfs_emit() when the driver_override pointer is NULL. Thus, printing\n\"\\n\" instead of \"(null)\\n\".","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nspi: usar la infraestructura genérica de driver_override\n\nCuando un controlador es sondeado a través de __driver_attach(), la función de devolución de llamada match() del bus es llamada sin el bloqueo del dispositivo activo, accediendo así al campo driver_override sin un bloqueo, lo que puede causar un UAF.\n\nEsto se soluciona usando la infraestructura driver_override del driver-core, gestionando internamente el bloqueo adecuado.\n\nTenga en cuenta que llamar a match() desde __driver_attach() sin el bloqueo del dispositivo activo es intencional. [1]\n\nTambién tenga en cuenta que no habilitamos la característica driver_override de la estructura bus_type, ya que SPI - a diferencia de la mayoría de otros buses - pasa ’’ a sysfs_emit() cuando el puntero driver_override es NULL. Así, imprimiendo ’\\n’ en lugar de ’(null)\\n’.","source":"nvd"}],"published":"2026-04-22T13:54:12.290Z","modified":"2026-11-11T23:10:00.263Z","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-667"],"affected":[{"ranges":[{"type":"git","introduced":"5039563e7c25eccd7fec1de6706011009d1c5665","fixed":"6e8eb467bed6aa1a563dba8f366c9fd76ba0004e","status":"affected"},{"type":"git","introduced":"5039563e7c25eccd7fec1de6706011009d1c5665","fixed":"eedf220442d13b6d97294e5b0ac8a2c38ee1a1a0","status":"affected"},{"type":"git","introduced":"5039563e7c25eccd7fec1de6706011009d1c5665","fixed":"c73a58661a760373d08a6883af4f0bb5cc991a67","status":"affected"},{"type":"git","introduced":"5039563e7c25eccd7fec1de6706011009d1c5665","fixed":"e0ae367a2de06c49aa1de6ec9b1ab6860bbb2cf0","status":"affected"},{"type":"git","introduced":"5039563e7c25eccd7fec1de6706011009d1c5665","fixed":"cc34d77dd48708d810c12bfd6f5bf03304f6c824","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.20","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.20","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","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.20.1","fixed":"6.12.80"},{"status":"affected","introduced":"6.13","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"4.20"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/6e8eb467bed6aa1a563dba8f366c9fd76ba0004e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eedf220442d13b6d97294e5b0ac8a2c38ee1a1a0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c73a58661a760373d08a6883af4f0bb5cc991a67","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e0ae367a2de06c49aa1de6ec9b1ab6860bbb2cf0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc34d77dd48708d810c12bfd6f5bf03304f6c824","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:34:57.394Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31487","url":"https://www.cve.org/CVERecord?id=CVE-2026-31487","licence":"CVE Terms of Use","modified":"2026-11-05T21:45:01.645Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31487","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31487","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.287Z","epss":{"score":0.00124,"percentile":0.02344,"date":"2026-12-01T12:00:22.000Z"}}