CVE-2026-74729

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

State
Published
Severity
Not scored
Published
Aug 22, 2026
Updated
Oct 30, 2026
Reserved
Aug 15, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 3772e5da445420543b25825ac2b5971f3743f6e8 to before f62afe827c52c300c64715631e6ac9e576c5112dAffected
  • 3772e5da445420543b25825ac2b5971f3743f6e8 to before b87c0d24386ed5106feac12034fe09d893ccb469Affected
  • 3772e5da445420543b25825ac2b5971f3743f6e8 to before afe2527eae0b51d5e8ddd77293afab3a5a1311a4Affected
  • 3772e5da445420543b25825ac2b5971f3743f6e8 to before 868c478abce858135db3eb65548a577e4b6747acAffected
  • 3772e5da445420543b25825ac2b5971f3743f6e8 to before 131ab677b03349a5ae48da8722ec7075b37ec66eAffected
  • 3772e5da445420543b25825ac2b5971f3743f6e8 to before 1acef6d85bfd98bd9dfe1f08bffa397a4dda8a6fAffected
LinuxLinux
  • 4.19Affected
  • before 4.19Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.114 through 6.12.*Not affected
  • 6.18.57 through 6.18.*Not affected
  • 7.1.9 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.