CVE-2025-22082: iio: backend: make sure to NULL terminate stack buffer

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.

Classification

CVE ID: CVE-2025-22082

Affected Products

Vendor: Linux

Product: Linux, Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.02% (probability of being exploited)

EPSS Percentile: 2.91% (scored less or equal to compared to others)

EPSS Date: 2025-04-20 (when was this score calculated)

References

https://nvd.nist.gov/vuln/detail/CVE-2025-22082
https://git.kernel.org/stable/c/df3892e5e861c43d5612728ed259634675b8a71f
https://git.kernel.org/stable/c/04271a4d2740f98bbe36f82cd3d74677a839d1eb
https://git.kernel.org/stable/c/fd791c81f410ab1c554686a6f486dc7a176dfe35
https://git.kernel.org/stable/c/035b4989211dc1c8626e186d655ae8ca5141bb73

Timeline