Description
In the Linux kernel, the following vulnerability has been resolved:

soc: aspeed: lpc-snoop: Fix usercopy overflow in snoop_file_read

put_fifo_with_discard() acts as both producer and consumer on the kfifo:
it calls kfifo_skip() (advances out) and kfifo_put() (advances in) from
the IRQ handler without synchronizing with snoop_file_read(), which also
consumes via kfifo_to_user(). On SMP systems this concurrent access can
leave (in - out) larger than the ring buffer, so __kfifo_to_user()'s clamp
to (in - out) is ineffective and kfifo_copy_to_user() can attempt a
copy_to_user() past the kmalloc-2k backing store:

usercopy: Kernel memory exposure attempt detected from SLUB object
'kmalloc-2k' (offset 0, size 2049)!
kernel BUG at mm/usercopy.c!
Call trace:
usercopy_abort
__check_heap_object
__check_object_size
kfifo_copy_to_user
__kfifo_to_user
snoop_file_read
vfs_read

Serialize kfifo access with a per-channel spinlock shared between the
IRQ handler (producer) and the file reader (consumer). Annotate @fifo
with __guarded_by(&lock) and opt the driver into context analysis so the
compiler enforces that all fifo access holds the lock.
Published: 2026-08-22
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Kernel memory corruption
Action: Immediate Patch
AI Analysis

Impact

In the Linux kernel, the aspeed LPC snoop driver uses a kfifo buffer that is accessed concurrently by an IRQ handler and a file read operation. Without synchronization, the producer can advance the input pointer while the consumer advances the output pointer, creating a race condition on SMP systems. This enables the difference (in - out) to exceed the ring buffer size, causing kfifo_copy_to_user to copy more data than the 2‑K backing store. The resulting overflow exposes kernel memory and triggers a kernel BUG, potentially leading to a crash or exposing sensitive memory.

Affected Systems

Any Linux system that includes the Aspeed LPC snoop driver before the patch commits 131ab677b03349a5ae48da8722ec7075b37ec66e or 1acef6d85bfd98bd9dfe1f08bffa397a4dda8a6f is affected. The issue is relevant to symmetric‑multiprocessing machines where the IRQ handler and file read can run in parallel. No specific kernel version is listed; the fix is present in downstream stable kernels following the mentioned commits.

Risk and Exploitability

The CVSS score of 5.5 indicates moderate severity, and the EPSS score of <1% suggests a low probability of exploitation. The flaw is not listed in the CISA KEV catalog. Local attackers with the ability to read the snoop device could trigger the overflow, potentially causing a kernel panic or exposing sensitive memory. Remote exploitation appears unlikely because the driver is accessed locally. Overall, the risk is moderate, and prompt action is recommended.

Generated by OpenCVE AI on August 24, 2026 at 19:50 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that incorporates the patches from commit 131ab677b03349a5ae48da8722ec7075b37ec66e or the subsequent commit 1acef6d85bfd98bd9dfe1f08bffa397a4dda8a6f, which serialize kfifo access and eliminate the buffer overflow (CWE-125).
  • If an update cannot be applied immediately, disable the Aspeed LPC snoop driver by setting CONFIG_ASPEED_LPC_SNOOP=n or removing the module from the system configuration, thereby preventing the concurrency condition that triggers the over‑read.
  • Reboot or restart the system after disabling the driver to ensure the change takes effect.

Generated by OpenCVE AI on August 24, 2026 at 19:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 24 Aug 2026 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Mon, 24 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Sat, 22 Aug 2026 18:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Sat, 22 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: soc: aspeed: lpc-snoop: Fix usercopy overflow in snoop_file_read put_fifo_with_discard() acts as both producer and consumer on the kfifo: it calls kfifo_skip() (advances out) and kfifo_put() (advances in) from the IRQ handler without synchronizing with snoop_file_read(), which also consumes via kfifo_to_user(). On SMP systems this concurrent access can leave (in - out) larger than the ring buffer, so __kfifo_to_user()'s clamp to (in - out) is ineffective and kfifo_copy_to_user() can attempt a copy_to_user() past the kmalloc-2k backing store: usercopy: Kernel memory exposure attempt detected from SLUB object 'kmalloc-2k' (offset 0, size 2049)! kernel BUG at mm/usercopy.c! Call trace: usercopy_abort __check_heap_object __check_object_size kfifo_copy_to_user __kfifo_to_user snoop_file_read vfs_read Serialize kfifo access with a per-channel spinlock shared between the IRQ handler (producer) and the file reader (consumer). Annotate @fifo with __guarded_by(&lock) and opt the driver into context analysis so the compiler enforces that all fifo access holds the lock.
Title soc: aspeed: lpc-snoop: Fix usercopy overflow in snoop_file_read
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-22T15:33:19.037Z

Reserved: 2026-08-15T05:44:03.929Z

Link: CVE-2026-74729

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-22T16:16:48.033

Modified: 2026-08-22T16:16:48.033

Link: CVE-2026-74729

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-22T00:00:00Z

Links: CVE-2026-74729 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-24T20:00:04Z

Weaknesses