CVE-2025-38667
published high CVSS 3.1 · 7.8iio: fix potential out-of-bound write
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux6d5dd486c715908b5a6ed02315a15ff044a91025 to < 81a635b6eccd6fc889f6d07ab9583b705f739ce1 · 6d5dd486c715908b5a6ed02315a15ff044a91025 to < 16285a0931869baa618b1f5d304e1e9d090470a8 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.15 (affected) · 0 to < 6.15 (unaffected · semver) · 6.15.9 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: iio: fix potential out-of-bound write The buffer is set to 20 characters. If a caller write more characters, count is truncated to the max available space in "simple_write_to_buffer". To protect from OoB access, check that the input size fit into buffer and add a zero terminator after copy to the end of the copied data.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The bug is triggered by a plain write(2) syscall on the debugfs file /sys/kernel/debug/iio/<dev>/direct_reg_access, which requires local access to the system. There is no network-facing path to iio_debugfs_write_reg. AC:L - A single write() with an oversized count and a 79-byte userspace buffer deterministically produces the out-of-bounds write; the attacker fully controls the offset (80 up to MAX_RW_COUNT) with no race, no memory-layout dependency, and no retries needed. PR:L - Reaching the node needs only local access to a mounted debugfs, whose IIO sensor nodes are routinely relaxed to service/HAL accounts on Android, embedded and industrial deployments where IIO drivers live; consistent with prior kernel-CNA scoring of debugfs-reachable memory-safety bugs (CVE-2026-43380, CVE-2026-46190) this is Low rather than High. UI:N - The attacker performs the entire attack themselves with an open() plus write() on an already-present debugfs node; no victim action, mount, or file-open by another user is required. S:U - The corruption is confined to kernel memory managed by the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - The attacker-controlled NUL write into the kernel stack can zero bytes of saved pointers, length, or index fields in adjacent frames, which is leverageable into arbitrary kernel-memory disclosure; per guidance, memory corruption exploitable for info disclosure scores High. I:H - This is a genuine out-of-bounds write with a fully attacker-controlled offset, allowing a zero byte to be placed over saved return addresses, stack canary bytes, or (without VMAP_STACK) adjacent kernel heap data, giving a control-flow-hijack primitive. A:H - Large count values drive the write into the VMAP_STACK guard page or corrupt saved stack state, producing an oops, double fault, or panic that can be triggered repeatedly.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 6d5dd486c715908b5a6ed02315a15ff044a91025 to < 81a635b6eccd6fc889f6d07ab9583b705f739ce1 (affected · git)6d5dd486c715908b5a6ed02315a15ff044a91025 to < 16285a0931869baa618b1f5d304e1e9d090470a8 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.15 (affected)0 to < 6.15 (unaffected · semver)6.15.9 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
iio: fix potential out-of-bound write
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ddce4eb7b1b71b79f3af04ac2f8ac96480bfad293e8caf9c358ff38e56a9839e
- Ingested
- 23 Sep 2026, 08:46:47 UTC
- Source record
- Official CVE record