# CVE-2026-98528: gpio: cdev: fix kernel stack leak to user-space in error path

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-18T15:17:46.695Z
- **Modified:** 2026-10-19T10:19:08.137Z

## Who should check

- Anyone running Linux \>= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, \< 8460ee5216ab9a38263b01dca4b0a27e083f70f3; \>= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, \< cf3d043582e106a0e57002bec8a6de8929ba3e1c; \>= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, \< 60a466f231905cd96ae6f0f3c44a710c97873dac; \>= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, \< 1feb5d39b05afd902ed9fc902ec5b15be03a4bdb
- Anyone running Linux 6.9

## Description

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.

## Affected and fixed versions

- Linux: \>= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, \< 8460ee5216ab9a38263b01dca4b0a27e083f70f3; \>= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, \< cf3d043582e106a0e57002bec8a6de8929ba3e1c; \>= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, \< 60a466f231905cd96ae6f0f3c44a710c97873dac; \>= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, \< 1feb5d39b05afd902ed9fc902ec5b15be03a4bdb (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- Upgrade Linux to 1feb5d39b05afd902ed9fc902ec5b15be03a4bdb or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98528. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98528.md
Affected: Linux >= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, < 8460ee5216ab9a38263b01dca4b0a27e083f70f3; >= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, < cf3d043582e106a0e57002bec8a6de8929ba3e1c; >= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, < 60a466f231905cd96ae6f0f3c44a710c97873dac; >= d83cee3d2bb131c7fca7e19…
Fixed in: Linux 8460ee5216ab9a38263b01dca4b0a27e083f70f3, Linux 60a466f231905cd96ae6f0f3c44a710c97873dac, Linux 1feb5d39b05afd902ed9fc902ec5b15be03a4bdb

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98528 being exploited?

There is no confirmed exploitation: CVE-2026-98528 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98528?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98528?

Linux \>= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, \< 8460ee5216ab9a38263b01dca4b0a27e083f70f3; \>= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, \< cf3d043582e106a0e57002bec8a6de8929ba3e1c; \>= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, \< 60a466f231905cd96ae6f0f3c44a710c97873dac; \>= d83cee3d2bb131c7fca7e19f1e33dc7530fd7083, \< 1feb5d39b05afd902ed9fc902ec5b15be03a4bdb; Linux 6.9.

### Is there a fix for CVE-2026-98528?

Yes. Fixed in Linux 8460ee5216ab9a38263b01dca4b0a27e083f70f3, Linux 60a466f231905cd96ae6f0f3c44a710c97873dac, Linux 1feb5d39b05afd902ed9fc902ec5b15be03a4bdb. Upgrade Linux to 1feb5d39b05afd902ed9fc902ec5b15be03a4bdb or later.

### How do I check if I'm affected by CVE-2026-98528?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/8460ee5216ab9a38263b01dca4b0a27e083f70f3>
- other: <https://git.kernel.org/stable/c/cf3d043582e106a0e57002bec8a6de8929ba3e1c>
- other: <https://git.kernel.org/stable/c/60a466f231905cd96ae6f0f3c44a710c97873dac>
- other: <https://git.kernel.org/stable/c/1feb5d39b05afd902ed9fc902ec5b15be03a4bdb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98528>

HTML: <https://flawdb.com/CVE-2026-98528> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98528>
