CVE-2026-98528
gpio: cdev: fix kernel stack leak to user-space in error path
Reported by linux · Published October 18, 2026
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.
EPSS 0.21% · 11.1th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.18-headers | Amazon Linux | 1:6.18.56-125.164.amzn2023 |
| kernel6.18-tools-devel | Amazon Linux | 1:6.18.56-125.164.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.113-138.209.amzn2023 |
| Linux | Linux | 6.9, 1feb5d39b05afd902ed9fc902ec5b15be03a4bdb |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, d83cee3d2bb131c7fca7e19f1e33dc7530fd7083 |
| Linux | Linux | 6.9, 0, 6.12.112 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| Linux | Linux | 0, 7.2.9, 6.18.55 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel-livepatch-6.12.113-138.209 | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | bpftool6.18 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| linux | linux_kernel | 6.9, 6.9, 6.9 |
| amazon:2023 | kernel6.18 | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | microvm-kernel6.18 | 0 |
…and 7 more
Timeline
- Oct 18, 2026 Coalition ESS Score
- Oct 18, 2026 CVE Published
- Oct 19, 2026 EPSS Score (5 in total, the first dated here)
- Oct 19, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-98528
vulnetix vdb fixes CVE-2026-98528
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-98528/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart