CVE-2025-22082

iio: backend: make sure to NULL terminate stack buffer

MEDIUM
5.5
CVSS Score
Published: April 16, 2025 at 02:12 PM UTC
Updated: June 17, 2026 at 08:45 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: iio: backend: make sure to NULL terminate stack buffer Make sure to NULL terminate the buffer in iio_backend_debugfs_write_reg() before passing it to sscanf(). It is a stack variable so we should not assume it will 0 initialized.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.12 ≤ v < 6.12.236.12 ≤ v < 6.13.116.12 ≤ v < 6.14.26.12 ≤ v < 6.156.13 ≤ v < 6.13.116.14 ≤ v < 6.14.26.12cdf01e0809a4c6c7877ea52401c2a6679df7aed6
Vendor states this is fixed in 35b4989211dc1c8626e186d655ae8ca5141bb73 (fixed)
Vendor states this is fixed in 4271a4d2740f98bbe36f82cd3d74677a839d1eb (fixed)
Vendor states this is fixed in df3892e5e861c43d5612728ed259634675b8a71f (fixed)
Vendor states this is fixed in fd791c81f410ab1c554686a6f486dc7a176dfe35 (fixed)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.12.23 (unaffected)
Vendor states this is fixed in 6.13.11 (unaffected)
Vendor states this is fixed in 6.14.2 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/035b4989211dc1c8626e186d655ae8ca5141bb73
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/04271a4d2740f98bbe36f82cd3d74677a839d1eb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/df3892e5e861c43d5612728ed259634675b8a71f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fd791c81f410ab1c554686a6f486dc7a176dfe35

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card