Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-74729

NONE Gepubliceerd:

Beschrijving NL

In de Linux kernel is de volgende kwetsbaarheid verholpen:

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

put_fifo_with_discard() treedt op als zowel producent als consument op de kfifo:
het roept kfifo_skip() (voorschotten uit) en kfifo_put() (voorschotten in) van
de IRQ-handler zonder synchronisatie met snoop_file_read(), die ook
verbruikt via kfifo_to_user(). Op SMP-systemen kan deze gelijktijdige toegang
laat (in - uit) groter dan de ringbuffer, dus __ kfifo_to_user()'s klem
to (in - out) is niet effectief en kfifo_copy_to_user() kan proberen een
copy_to_user() voorbij de kmalloc-2k backing store:

usercopy: Poging tot blootstelling aan kernelgeheugen gedetecteerd van slub-object
'kmalloc-2k' (offset 0, grootte 2049)! KERNELBUG op mm/usercopy.c! Oproepspoor:
usercopy_abort
__check_heap_object
__check_object_size
kfifo_copy_to_user
__kfifo_to_user
snoop_file_read
vfs_read

Serialize kfifo-toegang met een spinlock per kanaal gedeeld tussen de
IRQ-handler (producent) en de bestandslezer (consument). Maak aantekeningen bij @fifo
met __guarded_by(&lock) en kies de chauffeur voor contextanalyse, zodat de
compiler dwingt af dat alle FIFA-toegang het slot vasthoudt.

Origineel (Engels) tonen

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.

References