{"id":"CVE-2025-38484","state":"PUBLISHED","title":"iio: backend: fix out-of-bound write","description":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: backend: fix out-of-bound write\n\nThe buffer is set to 80 character. If a caller write more characters,\ncount is truncated to the max available space in \"simple_write_to_buffer\".\nBut afterwards a string terminator is written to the buffer at offset count\nwithout boundary check. The zero termination is written OUT-OF-BOUND.\n\nAdd a check that the given buffer is smaller then the buffer to prevent.","publishedAt":"2025-07-28T11:21:48.690Z","updatedAt":"2026-08-05T12:02:16.576Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"df3892e5e861c43d5612728ed259634675b8a71f","status":"affected","lessThan":"6eea9f7648ddb9e4903735a1f77cf196c957aa38","versionType":"git"},{"version":"035b4989211dc1c8626e186d655ae8ca5141bb73","status":"affected","lessThan":"01e941aa7f5175125df4ac5d3aab099961525602","versionType":"git"},{"version":"035b4989211dc1c8626e186d655ae8ca5141bb73","status":"affected","lessThan":"da9374819eb3885636934c1006d450c3cb1a02ed","versionType":"git"},{"version":"04271a4d2740f98bbe36f82cd3d74677a839d1eb","status":"affected","versionType":"git"},{"version":"fd791c81f410ab1c554686a6f486dc7a176dfe35","status":"affected","versionType":"git"},{"version":"6.12.23","status":"affected","lessThan":"6.12.40","versionType":"semver"},{"version":"6.13.11","status":"affected","lessThan":"6.14","versionType":"semver"},{"version":"6.14.2","status":"affected","lessThan":"6.15","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/industrialio-backend.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.12.40","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.8","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/industrialio-backend.c"]}],"references":["https://git.kernel.org/stable/c/6eea9f7648ddb9e4903735a1f77cf196c957aa38","https://git.kernel.org/stable/c/01e941aa7f5175125df4ac5d3aab099961525602","https://git.kernel.org/stable/c/da9374819eb3885636934c1006d450c3cb1a02ed"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38484.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38484","state":"PUBLISHED","datePublished":"2025-07-28T11:21:48.690Z","dateUpdated":"2026-08-05T12:02:16.576Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:24.021Z"},"containers":{"cna":{"title":"iio: backend: fix out-of-bound write","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: backend: fix out-of-bound write\n\nThe buffer is set to 80 character. If a caller write more characters,\ncount is truncated to the max available space in \"simple_write_to_buffer\".\nBut afterwards a string terminator is written to the buffer at offset count\nwithout boundary check. The zero termination is written OUT-OF-BOUND.\n\nAdd a check that the given buffer is smaller then the buffer to prevent."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"df3892e5e861c43d5612728ed259634675b8a71f","status":"affected","lessThan":"6eea9f7648ddb9e4903735a1f77cf196c957aa38","versionType":"git"},{"version":"035b4989211dc1c8626e186d655ae8ca5141bb73","status":"affected","lessThan":"01e941aa7f5175125df4ac5d3aab099961525602","versionType":"git"},{"version":"035b4989211dc1c8626e186d655ae8ca5141bb73","status":"affected","lessThan":"da9374819eb3885636934c1006d450c3cb1a02ed","versionType":"git"},{"version":"04271a4d2740f98bbe36f82cd3d74677a839d1eb","status":"affected","versionType":"git"},{"version":"fd791c81f410ab1c554686a6f486dc7a176dfe35","status":"affected","versionType":"git"},{"version":"6.12.23","status":"affected","lessThan":"6.12.40","versionType":"semver"},{"version":"6.13.11","status":"affected","lessThan":"6.14","versionType":"semver"},{"version":"6.14.2","status":"affected","lessThan":"6.15","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/industrialio-backend.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.12.40","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.8","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/iio/industrialio-backend.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6eea9f7648ddb9e4903735a1f77cf196c957aa38"},{"url":"https://git.kernel.org/stable/c/01e941aa7f5175125df4ac5d3aab099961525602"},{"url":"https://git.kernel.org/stable/c/da9374819eb3885636934c1006d450c3cb1a02ed"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerable code is reached only by a local `write(2)`/`pwrite(2)` on the debugfs file `/sys/kernel/debug/iio/iio:deviceN/backendM/direct_reg_access`. There is no network or remote data path into `iio_backend_debugfs_write_reg()`.\nAC:L - A single `write()` with any length ≥ 80 deterministically executes `buf[count] = '\\0'` out of bounds, and the attacker directly chooses the corruption offset via the syscall length. No race, no memory-layout precondition, and no unpredictable state is involved.\nPR:L - The debugfs node is created 0600, but debugfs on industrial/embedded IIO deployments is routinely mounted and permission-relaxed for instrumentation tooling, making the write reachable by an unprivileged local account; consistent with this CNA's scoring of comparable debugfs memory-corruption bugs (CVE-2026-43380, CVE-2026-46190). Choosing the higher-severity option where reachability depends on deployment configuration.\nUI:N - The attacker triggers the bug entirely on their own with one write syscall against an already-present device node. No action by any other user or administrator is required.\nS:U - The out-of-bounds write corrupts kernel memory within the same kernel security authority; there is no VM, IOMMU, or sandbox boundary crossed.\nC:H - Attacker-controlled stack corruption at a chosen offset can truncate saved pointers and length/size fields, which is readily leveraged into kernel memory disclosure, and full kernel compromise implies unrestricted read of system memory.\nI:H - This is a direct out-of-bounds write with an attacker-chosen offset spanning the kernel stack (return addresses, saved registers, stack canary) and, on non-VMAP_STACK builds, adjacent lowmem — a NUL-byte poisoning primitive usable for control-flow hijack and privilege escalation.\nA:H - Overwriting the stack canary, a return address, or hitting the VMAP_STACK guard page with a large offset causes an immediate kernel panic/oops, and the write can be repeated at will."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T12:02:16.576Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.23","versionEndExcluding":"6.12.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"6.15.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"6.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}