Back to CVE catalog
CVE-2026-98528

Kernel stack leak to user space in GPIO cdev error path

Linux Linux

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityLow
IntegrityNone
AvailabilityNone

CVSS summary v3.1

3.3Low
Published:
Updated:
EPSS:
0.209%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Local

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:LinuxLinuxAffected versions:
6.9Show full version range for Linux
  • Other versions are affected by default; consult the source for exceptions.
  • Other source statuses: unaffected: < 6.9; unaffected: ≥ 6.12.112, ≤ 6.12.*; unaffected: ≥ 6.18.55, ≤ 6.18.*; unaffected: ≥ 7.2.9, ≤ 7.2.*; unaffected: ≥ 7.3

Git commit ranges (source code)

  • From commit d83cee3d2bb131c7fca7e19f1e33dc7530fd7083; before commit 8460ee5216ab9a38263b01dca4b0a27e083f70f3
  • From commit d83cee3d2bb131c7fca7e19f1e33dc7530fd7083; before commit cf3d043582e106a0e57002bec8a6de8929ba3e1c
  • From commit d83cee3d2bb131c7fca7e19f1e33dc7530fd7083; before commit 60a466f231905cd96ae6f0f3c44a710c97873dac
  • From commit d83cee3d2bb131c7fca7e19f1e33dc7530fd7083; before commit 1feb5d39b05afd902ed9fc902ec5b15be03a4bdb
Vendor:Red HatRed Hat Enterprise Linux 10Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise High Availability Extension 16.0Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise High Availability Extension 16.1Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise Server 16.0Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise Server 16.1Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise Server for SAP applications 16.0Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Enterprise Server for SAP applications 16.1Affected versions:Source does not specify a version range
Vendor:SUSESUSE Linux Micro 6.2Affected versions:Source does not specify a version range
Vendor:SUSEopenSUSE Leap 16.0Affected versions:Source does not specify a version range

1–10 of 12 · Page 1 of 2

CVSS scores and metrics1
Red Hat · Red Hat VEX (adp)Primary3.3 / 10LowCVSS 3.1Details
Attack complexity
Low
Confidentiality
Low
Integrity
None
Availability
None
Attack vector
Local
Privileges required
Low
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories12

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences