CVE-2025-22082Published Apr 16, 2025 · Apr 16Updated Oct 28
iio: backend: make sure to NULL terminate stack buffer
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's IIO backend does not ensure a stack buffer is null-terminated before passing it to sscanf() in iio_backend_debugfs_write_reg(). This may cause sscanf() to read beyond the intended buffer; the input does not specify attacker access requirements or user interaction.
Engineers running the Linux kernel should check their versions; affected versions are not specified.