{"id":"CVE-2026-74729","aliases":["CVE-2026-74729"],"related":[],"kind":"vulnerability","state":"published","title":"soc: aspeed: lpc-snoop: Fix usercopy overflow in snoop_file_read","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: aspeed: lpc-snoop: Fix usercopy overflow in snoop_file_read\n\nput_fifo_with_discard() acts as both producer and consumer on the kfifo:\nit calls kfifo_skip() (advances out) and kfifo_put() (advances in) from\nthe IRQ handler without synchronizing with snoop_file_read(), which also\nconsumes via kfifo_to_user(). On SMP systems this concurrent access can\nleave (in - out) larger than the ring buffer, so __kfifo_to_user()'s clamp\nto (in - out) is ineffective and kfifo_copy_to_user() can attempt a\ncopy_to_user() past the kmalloc-2k backing store:\n\n  usercopy: Kernel memory exposure attempt detected from SLUB object\n  'kmalloc-2k' (offset 0, size 2049)!\n  kernel BUG at mm/usercopy.c!\n  Call trace:\n   usercopy_abort\n   __check_heap_object\n   __check_object_size\n   kfifo_copy_to_user\n   __kfifo_to_user\n   snoop_file_read\n   vfs_read\n\nSerialize kfifo access with a per-channel spinlock shared between the\nIRQ handler (producer) and the file reader (consumer).  Annotate @fifo\nwith __guarded_by(&lock) and opt the driver into context analysis so the\ncompiler enforces that all fifo access holds the lock.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: aspeed: lpc-snoop: Fix usercopy overflow in snoop_file_read\n\nput_fifo_with_discard() acts as both producer and consumer on the kfifo:\nit calls kfifo_skip() (advances out) and kfifo_put() (advances in) from\nthe IRQ handler without synchronizing with snoop_file_read(), which also\nconsumes via kfifo_to_user(). On SMP systems this concurrent access can\nleave (in - out) larger than the ring buffer, so __kfifo_to_user()'s clamp\nto (in - out) is ineffective and kfifo_copy_to_user() can attempt a\ncopy_to_user() past the kmalloc-2k backing store:\n\n  usercopy: Kernel memory exposure attempt detected from SLUB object\n  'kmalloc-2k' (offset 0, size 2049)!\n  kernel BUG at mm/usercopy.c!\n  Call trace:\n   usercopy_abort\n   __check_heap_object\n   __check_object_size\n   kfifo_copy_to_user\n   __kfifo_to_user\n   snoop_file_read\n   vfs_read\n\nSerialize kfifo access with a per-channel spinlock shared between the\nIRQ handler (producer) and the file reader (consumer).  Annotate @fifo\nwith __guarded_by(&lock) and opt the driver into context analysis so the\ncompiler enforces that all fifo access holds the lock.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nsoc: aspeed: lpc-snoop: Corrección de desbordamiento de usercopy en snoop_file_read\n\nput_fifo_with_discard() actúa como productor y consumidor en el kfifo: llama a kfifo_skip() (avanza hacia afuera) y kfifo_put() (avanza hacia adentro) desde el gestor IRQ sin sincronizarse con snoop_file_read(), que también consume a través de kfifo_to_user(). En sistemas SMP, este acceso concurrente puede dejar (in - out) mayor que el búfer de anillo, por lo que la limitación de __kfifo_to_user() a (in - out) es ineficaz y kfifo_copy_to_user() puede intentar un copy_to_user() más allá del almacenamiento de respaldo kmalloc-2k:\n\n  usercopy: Intento de exposición de memoria del kernel detectado desde el objeto SLUB 'kmalloc-2k' (desplazamiento 0, tamaño 2049)!\n  BUG del kernel en mm/usercopy.c!\n  Traza de llamada:\n   usercopy_abort\n   __check_heap_object\n   __check_object_size\n   kfifo_copy_to_user\n   __kfifo_to_user\n   snoop_file_read\n   vfs_read\n\nSerializar el acceso al kfifo con un spinlock por canal compartido entre el gestor IRQ (productor) y el lector de archivos (consumidor). Anotar @fifo con __guarded_by(&lock) y optar por incluir el controlador en el análisis de contexto para que el compilador imponga que todo acceso al fifo mantenga el bloqueo.","source":"nvd"}],"published":"2026-08-22T15:33:19.037Z","modified":"2026-10-30T13:20:04.977Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3772e5da445420543b25825ac2b5971f3743f6e8","fixed":"f62afe827c52c300c64715631e6ac9e576c5112d","status":"affected"},{"type":"git","introduced":"3772e5da445420543b25825ac2b5971f3743f6e8","fixed":"b87c0d24386ed5106feac12034fe09d893ccb469","status":"affected"},{"type":"git","introduced":"3772e5da445420543b25825ac2b5971f3743f6e8","fixed":"afe2527eae0b51d5e8ddd77293afab3a5a1311a4","status":"affected"},{"type":"git","introduced":"3772e5da445420543b25825ac2b5971f3743f6e8","fixed":"868c478abce858135db3eb65548a577e4b6747ac","status":"affected"},{"type":"git","introduced":"3772e5da445420543b25825ac2b5971f3743f6e8","fixed":"131ab677b03349a5ae48da8722ec7075b37ec66e","status":"affected"},{"type":"git","introduced":"3772e5da445420543b25825ac2b5971f3743f6e8","fixed":"1acef6d85bfd98bd9dfe1f08bffa397a4dda8a6f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.19","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.19","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.9","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f62afe827c52c300c64715631e6ac9e576c5112d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b87c0d24386ed5106feac12034fe09d893ccb469","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/afe2527eae0b51d5e8ddd77293afab3a5a1311a4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/868c478abce858135db3eb65548a577e4b6747ac","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/131ab677b03349a5ae48da8722ec7075b37ec66e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1acef6d85bfd98bd9dfe1f08bffa397a4dda8a6f","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74729","url":"https://www.cve.org/CVERecord?id=CVE-2026-74729","licence":"CVE Terms of Use","modified":"2026-10-30T12:30:24.911Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74729","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74729","licence":"Public domain","modified":"2026-10-30T13:20:04.977Z"}],"updatedAt":"2026-11-25T22:59:34.954Z","epss":{"score":0.00215,"percentile":0.06803,"date":"2026-11-30T12:00:22.000Z"}}