gpio: cdev: fix kernel stack leak to user-space in error path
In the Linux kernel, the following vulnerability has been resolved: gpio: cdev: fix kernel stack leak to user-space in error path If we fail to acquire the GPIO chip guard in gpio_desc_to_lineinfo(), we return immediately before zeroing the info struct we'll end up passing to the user-space later in lineinfo_get_v1(). This may leak the kernel stack contents. Make gpio_desc_to_lineinfo() return int so that the -ENODEV returned on failure to acquire the guard can be propagated to the callers. While not strictly necessary: move the memset() before trying to acquire the SRCU read lock too for good measure.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.112, 6.18.55, 7.2.9
- CVEs
- CVE-2026-98528
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 10:12 UTC · Revision 1
Source evidence
gpio: cdev: fix kernel stack leak to user-space in error path
core-osv · Original sourcePublished 18 Oct 2026, 15:17 UTC
In the Linux kernel, the following vulnerability has been resolved: gpio: cdev: fix kernel stack leak to user-space in error path If we fail to acquire the GPIO chip guard in gpio_desc_to_lineinfo(), we return immediately before zeroing the info struct we'll end up passing to the user-space later in lineinfo_get_v1(). This may leak the kernel stack contents. Make gpio_desc_to_lineinfo() return int so that the -ENODEV returned on failure to acquire the guard can be propagated to the callers. While not strictly necessary: move the memset() before trying to acquire the SRCU read lock too for good measure.
osv:CVE-2026-98528
Kernel
Fixed versions: 6.12.112, 6.18.55, 7.2.9
Complete source record
{
"id": "3f148bd2c477085adea35e2b0982919f4e43bcc5c6369ac9ae4e6c7904369f77",
"url": "https://osv.dev/vulnerability/CVE-2026-98528",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "gpio: cdev: fix kernel stack leak to user-space in error path",
"summary": "In the Linux kernel, the following vulnerability has been resolved: gpio: cdev: fix kernel stack leak to user-space in error path If we fail to acquire the GPIO chip guard in gpio_desc_to_lineinfo(), we return immediately before zeroing the info struct we'll end up passing to the user-space later in lineinfo_get_v1(). This may leak the kernel stack contents. Make gpio_desc_to_lineinfo() return int so that the -ENODEV returned on failure to acquire the guard can be propagated to the callers. While not strictly necessary: move the memset() before trying to acquire the SRCU read lock too for good measure.",
"evidence": "osv:CVE-2026-98528",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.12.112",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.55",
"evidence": "/affected/1/ranges"
},
{
"value": "7.2.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-98528",
"aliases": [
"CVE-2026-98528"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "d83cee3d2bb131c7fca7e19f1e33dc7530fd7083"
},
{
"fixed": "8460ee5216ab9a38263b01dca4b0a27e083f70f3"
},
{
"fixed": "cf3d043582e106a0e57002bec8a6de8929ba3e1c"
},
{
"fixed": "60a466f231905cd96ae6f0f3c44a710c97873dac"
},
{
"fixed": "1feb5d39b05afd902ed9fc902ec5b15be03a4bdb"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98528.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.9.0"
},
{
"fixed": "6.12.112"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.55"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.2.9"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98528.json"
}
}
],
"modified": "2026-10-28T02:30:43.695617904Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1feb5d39b05afd902ed9fc902ec5b15be03a4bdb",
"https://git.kernel.org/stable/c/60a466f231905cd96ae6f0f3c44a710c97873dac",
"https://git.kernel.org/stable/c/8460ee5216ab9a38263b01dca4b0a27e083f70f3",
"https://git.kernel.org/stable/c/cf3d043582e106a0e57002bec8a6de8929ba3e1c",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98528.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-98528",
"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/98xxx/CVE-2026-98528.json"
}
},
"related_cves": [
{
"value": "CVE-2026-98528",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 511585,
"published_at": "2026-10-18T15:17:46.695+00:00"
}