CVE-2026-139516: wifi: ath12k: Reserve space for a string terminator
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath12k: Reserve space for a string terminator
ath12kwritehttstatstype() accepts count == size, which fills the zero-initialized buffer without a terminating NUL. sscanf() then reads beyond the buffer.
Reject input that leaves no room for the trailing NUL.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.16 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In ath12k_write_htt_stats_type(), reject input when count leaves no room for the trailing NUL; ensure the buffer is NUL-terminated before sscanf() reads it.
Event History
Frequently Asked Questions
What input condition triggers the out-of-bounds read?
The issue occurs when ath12k_write_htt_stats_type() accepts an input where count equals the destination buffer size. That fills the zero-initialized buffer completely, leaving no NUL terminator before sscanf() processes it.
What is the remediation?
Apply a Linux kernel update containing the fix that rejects input which does not leave room for the trailing NUL terminator. The provided stable-kernel references identify commits carrying the correction.