spi: fix statistics allocation
In the Linux kernel, the following vulnerability has been resolved: spi: fix statistics allocation The controller per-cpu statistics is not allocated until after the controller has been registered with driver core, which leaves a window where accessing the sysfs attributes can trigger a NULL-pointer dereference. Fix this by moving the statistics allocation to controller allocation while tying its lifetime to that of the controller (rather than using implicit devres).
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.167, 6.12.78, 6.18.20, 6.19.10, 6.6.130
- CVEs
- CVE-2026-23475
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 01:56 UTC · Revision 1
Source evidence
In the Linux kernel, the following vulnerability has been resolved: spi: fix statistics allocation The controller per-cpu statistics is not allocated until after the controller has been registered with driver core, which leaves a window where accessing the sysfs attributes can trigger a NULL-pointer dereference. Fix this by moving the statistics allocation to controller allocation while tying its lifetime to that of the controller (rather than using implicit devres).
osv:CVE-2026-23475
Kernel
Fixed versions: 6.1.167, 6.6.130, 6.12.78, 6.18.20, 6.19.10
Complete source record
{
"id": "e31c90dcecd0eb34dd61512c48e3188b774020037ad67ab33c9f4090c8a17033",
"url": "https://osv.dev/vulnerability/CVE-2026-23475",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "spi: fix statistics allocation",
"summary": "In the Linux kernel, the following vulnerability has been resolved: spi: fix statistics allocation The controller per-cpu statistics is not allocated until after the controller has been registered with driver core, which leaves a window where accessing the sysfs attributes can trigger a NULL-pointer dereference. Fix this by moving the statistics allocation to controller allocation while tying its lifetime to that of the controller (rather than using implicit devres).",
"evidence": "osv:CVE-2026-23475",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.167",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.130",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.78",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.20",
"evidence": "/affected/1/ranges"
},
{
"value": "6.19.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-23475",
"aliases": [
"CVE-2026-23475"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6598b91b5ac32bc756d7c3000a31f775d4ead1c4"
},
{
"fixed": "80c5bd0dca1cc5526ae0f4b273ccd163ed4caa4e"
},
{
"fixed": "f13100b1f5f111989f0750540a795fdef47492af"
},
{
"fixed": "df30056c78e8bead02d4be020199cabdbec0fef1"
},
{
"fixed": "378b295f67102eef78cf2c28105f60ae1dab5cc1"
},
{
"fixed": "118ce777d39f03cac99231196f820e4f998613a8"
},
{
"fixed": "dee0774bbb2abb172e9069ce5ffef579b12b3ae9"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23475.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.0.0"
},
{
"fixed": "6.1.167"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.130"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.78"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.20"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "6.19.10"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23475.json"
}
}
],
"modified": "2026-10-28T02:30:52.769819930Z",
"provider": "osv",
"references": [
"https://cert-portal.siemens.com/productcert/html/ssa-019113.html",
"https://cert-portal.siemens.com/productcert/html/ssa-082556.html",
"https://cert-portal.siemens.com/productcert/html/ssa-457936.html",
"https://git.kernel.org/stable/c/118ce777d39f03cac99231196f820e4f998613a8",
"https://git.kernel.org/stable/c/378b295f67102eef78cf2c28105f60ae1dab5cc1",
"https://git.kernel.org/stable/c/80c5bd0dca1cc5526ae0f4b273ccd163ed4caa4e",
"https://git.kernel.org/stable/c/dee0774bbb2abb172e9069ce5ffef579b12b3ae9",
"https://git.kernel.org/stable/c/df30056c78e8bead02d4be020199cabdbec0fef1",
"https://git.kernel.org/stable/c/f13100b1f5f111989f0750540a795fdef47492af",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23475.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-23475",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23475.json"
}
},
"related_cves": [
{
"value": "CVE-2026-23475",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 521553,
"published_at": "2026-04-03T15:15:54.211+00:00"
}