In the Linux kernel, the following vulnerability has been resolved: auxdisplay: line-display: fix OOB read on zero-length message_store()… (CVE-2026-63949)
A vulnerability in the Linux kernel auxdisplay line-display driver allows an out-of-bounds (OOB) read when writing zero-length messages to the message sysfs attribute. The function linedisp_display() reads msg[count - 1] without checking if count is zero, causing an OOB read at msg[-1]. This can lead to kernel memory being read incorrectly and potential kernel panic on KASAN-enabled kernels. The issue affects auxdisplay drivers registered via linedisp_register() or linedisp_attach(), including ht16k33, max6959, img-ascii-lcd, and seg-led-gpio. The vulnerability is triggered by zero-byte writes from userspace. A fix involves adding a count check before trimming the trailing newline in linedisp_display().
AI Analysis
Technical Summary
The Linux kernel vulnerability CVE-2026-63949 involves an out-of-bounds read in the auxdisplay line-display driver. The linedisp_display() function unconditionally reads the last byte of a message buffer (msg[count - 1]) without verifying that count is non-zero. When a zero-length write occurs to the message sysfs attribute, this results in reading msg[-1], which is outside the allocated buffer. On kernels with KASAN enabled, this triggers a panic due to the out-of-bounds read. On standard kernels, it silently reads adjacent slab memory, which may cause unexpected behavior such as count wrapping to -1 and passing invalid parameters to kmemdup_nul(). The vulnerability is reachable only via zero-byte writes from userspace to the message sysfs attribute of affected auxdisplay drivers. The fix adds a guard to ensure the trailing newline trim only occurs if count is greater than zero.
Potential Impact
This vulnerability can cause out-of-bounds memory reads in the kernel, potentially leading to kernel panics on KASAN-enabled systems or undefined behavior on standard kernels. It may allow reading unintended kernel memory adjacent to the allocated buffer. There is no indication of privilege escalation or remote code execution from the provided data. The vulnerability is triggered by zero-byte writes to a sysfs attribute, which requires local access.
Mitigation Recommendations
A fix is available that adds a check on the count variable before accessing msg[count - 1] in linedisp_display(). Users should apply the official Linux kernel patch that guards the trailing-newline trim with a count check. Until patched, avoid writing zero-length messages to the message sysfs attribute of affected auxdisplay drivers. Monitor vendor advisories for the official patch and update accordingly.
In the Linux kernel, the following vulnerability has been resolved: auxdisplay: line-display: fix OOB read on zero-length message_store()… (CVE-2026-63949)
Description
A vulnerability in the Linux kernel auxdisplay line-display driver allows an out-of-bounds (OOB) read when writing zero-length messages to the message sysfs attribute. The function linedisp_display() reads msg[count - 1] without checking if count is zero, causing an OOB read at msg[-1]. This can lead to kernel memory being read incorrectly and potential kernel panic on KASAN-enabled kernels. The issue affects auxdisplay drivers registered via linedisp_register() or linedisp_attach(), including ht16k33, max6959, img-ascii-lcd, and seg-led-gpio. The vulnerability is triggered by zero-byte writes from userspace. A fix involves adding a count check before trimming the trailing newline in linedisp_display().
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel vulnerability CVE-2026-63949 involves an out-of-bounds read in the auxdisplay line-display driver. The linedisp_display() function unconditionally reads the last byte of a message buffer (msg[count - 1]) without verifying that count is non-zero. When a zero-length write occurs to the message sysfs attribute, this results in reading msg[-1], which is outside the allocated buffer. On kernels with KASAN enabled, this triggers a panic due to the out-of-bounds read. On standard kernels, it silently reads adjacent slab memory, which may cause unexpected behavior such as count wrapping to -1 and passing invalid parameters to kmemdup_nul(). The vulnerability is reachable only via zero-byte writes from userspace to the message sysfs attribute of affected auxdisplay drivers. The fix adds a guard to ensure the trailing newline trim only occurs if count is greater than zero.
Potential Impact
This vulnerability can cause out-of-bounds memory reads in the kernel, potentially leading to kernel panics on KASAN-enabled systems or undefined behavior on standard kernels. It may allow reading unintended kernel memory adjacent to the allocated buffer. There is no indication of privilege escalation or remote code execution from the provided data. The vulnerability is triggered by zero-byte writes to a sysfs attribute, which requires local access.
Mitigation Recommendations
A fix is available that adds a check on the count variable before accessing msg[count - 1] in linedisp_display(). Users should apply the official Linux kernel patch that guards the trailing-newline trim with a count check. Until patched, avoid writing zero-length messages to the message sysfs attribute of affected auxdisplay drivers. Monitor vendor advisories for the official patch and update accordingly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-3qfr-7vgq-2884
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63949"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a5d27ab2a4a8d598912eefa
Added to database: 07/19/2026, 19:38:19 UTC
Last enriched: 07/19/2026, 20:06:30 UTC
Last updated: 07/20/2026, 17:54:17 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.