{"id":"CVE-2025-68320","aliases":["CVE-2025-68320"],"related":[],"kind":"vulnerability","state":"published","title":"lan966x: Fix sleeping in atomic context","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nlan966x: Fix sleeping in atomic context\n\nThe following warning was seen when we try to connect using ssh to the device.\n\nBUG: sleeping function called from invalid context at kernel/locking/mutex.c:575\nin_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 104, name: dropbear\npreempt_count: 1, expected: 0\nINFO: lockdep is turned off.\nCPU: 0 UID: 0 PID: 104 Comm: dropbear Tainted: G        W           6.18.0-rc2-00399-g6f1ab1b109b9-dirty #530 NONE\nTainted: [W]=WARN\nHardware name: Generic DT based system\nCall trace:\n unwind_backtrace from show_stack+0x10/0x14\n show_stack from dump_stack_lvl+0x7c/0xac\n dump_stack_lvl from __might_resched+0x16c/0x2b0\n __might_resched from __mutex_lock+0x64/0xd34\n __mutex_lock from mutex_lock_nested+0x1c/0x24\n mutex_lock_nested from lan966x_stats_get+0x5c/0x558\n lan966x_stats_get from dev_get_stats+0x40/0x43c\n dev_get_stats from dev_seq_printf_stats+0x3c/0x184\n dev_seq_printf_stats from dev_seq_show+0x10/0x30\n dev_seq_show from seq_read_iter+0x350/0x4ec\n seq_read_iter from seq_read+0xfc/0x194\n seq_read from proc_reg_read+0xac/0x100\n proc_reg_read from vfs_read+0xb0/0x2b0\n vfs_read from ksys_read+0x6c/0xec\n ksys_read from ret_fast_syscall+0x0/0x1c\nException stack(0xf0b11fa8 to 0xf0b11ff0)\n1fa0:                   00000001 00001000 00000008 be9048d8 00001000 00000001\n1fc0: 00000001 00001000 00000008 00000003 be905920 0000001e 00000000 00000001\n1fe0: 0005404c be9048c0 00018684 b6ec2cd8\n\nIt seems that we are using a mutex in a atomic context which is wrong.\nChange the mutex with a spinlock.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nlan966x: Fix sleeping in atomic context\n\nThe following warning was seen when we try to connect using ssh to the device.\n\nBUG: sleeping function called from invalid context at kernel/locking/mutex.c:575\nin_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 104, name: dropbear\npreempt_count: 1, expected: 0\nINFO: lockdep is turned off.\nCPU: 0 UID: 0 PID: 104 Comm: dropbear Tainted: G        W           6.18.0-rc2-00399-g6f1ab1b109b9-dirty #530 NONE\nTainted: [W]=WARN\nHardware name: Generic DT based system\nCall trace:\n unwind_backtrace from show_stack+0x10/0x14\n show_stack from dump_stack_lvl+0x7c/0xac\n dump_stack_lvl from __might_resched+0x16c/0x2b0\n __might_resched from __mutex_lock+0x64/0xd34\n __mutex_lock from mutex_lock_nested+0x1c/0x24\n mutex_lock_nested from lan966x_stats_get+0x5c/0x558\n lan966x_stats_get from dev_get_stats+0x40/0x43c\n dev_get_stats from dev_seq_printf_stats+0x3c/0x184\n dev_seq_printf_stats from dev_seq_show+0x10/0x30\n dev_seq_show from seq_read_iter+0x350/0x4ec\n seq_read_iter from seq_read+0xfc/0x194\n seq_read from proc_reg_read+0xac/0x100\n proc_reg_read from vfs_read+0xb0/0x2b0\n vfs_read from ksys_read+0x6c/0xec\n ksys_read from ret_fast_syscall+0x0/0x1c\nException stack(0xf0b11fa8 to 0xf0b11ff0)\n1fa0:                   00000001 00001000 00000008 be9048d8 00001000 00000001\n1fc0: 00000001 00001000 00000008 00000003 be905920 0000001e 00000000 00000001\n1fe0: 0005404c be9048c0 00018684 b6ec2cd8\n\nIt seems that we are using a mutex in a atomic context which is wrong.\nChange the mutex with a spinlock.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nlan966x: Corrección de suspensión en contexto atómico\n\nLa siguiente advertencia fue vista cuando intentamos conectar usando ssh al dispositivo.\n\nBUG: función de suspensión llamada desde contexto inválido en kernel/locking/mutex.c:575\nin_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 104, name: dropbear\npreempt_count: 1, expected: 0\nINFO: lockdep está desactivado.\nCPU: 0 UID: 0 PID: 104 Comm: dropbear Tainted: G        W           6.18.0-rc2-00399-g6f1ab1b109b9-dirty #530 NONE\nTainted: [W]=WARN\nNombre del hardware: Sistema genérico basado en DT\nTraza de llamada:\n unwind_backtrace desde show_stack+0x10/0x14\n show_stack desde dump_stack_lvl+0x7c/0xac\n dump_stack_lvl desde __might_resched+0x16c/0x2b0\n __might_resched desde __mutex_lock+0x64/0xd34\n __mutex_lock desde mutex_lock_nested+0x1c/0x24\n mutex_lock_nested desde lan966x_stats_get+0x5c/0x558\n lan966x_stats_get desde dev_get_stats+0x40/0x43c\n dev_get_stats desde dev_seq_printf_stats+0x3c/0x184\n dev_seq_printf_stats desde dev_seq_show+0x10/0x30\n dev_seq_show desde seq_read_iter+0x350/0x4ec\n seq_read_iter desde seq_read+0xfc/0x194\n seq_read desde proc_reg_read+0xac/0x100\n proc_reg_read desde vfs_read+0xb0/0x2b0\n vfs_read desde ksys_read+0x6c/0xec\n ksys_read desde ret_fast_syscall+0x0/0x1c\nPila de excepción(0xf0b11fa8 a 0xf0b11ff0)\n1fa0:                   00000001 00001000 00000008 be9048d8 00001000 00000001\n1fc0: 00000001 00001000 00000008 00000003 be905920 0000001e 00000000 00000001\n1fe0: 0005404c be9048c0 00018684 b6ec2cd8\n\nParece que estamos usando un mutex en un contexto atómico, lo cual es incorrecto.\nCambiar el mutex por un spinlock.","source":"nvd"}],"published":"2025-12-16T15:44:18.217Z","modified":"2026-10-30T13:18:20.000Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007","fixed":"cabb8cbeab49f4b74d78a91a277e00d4f6dd5d7d","status":"affected"},{"type":"git","introduced":"12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007","fixed":"5a5d2f7727752b64d13263eacd9f8d08a322e662","status":"affected"},{"type":"git","introduced":"12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007","fixed":"c8ab03aa5bd9fd8bfe5d9552d8605826759fdd4d","status":"affected"},{"type":"git","introduced":"12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007","fixed":"3ac743c60ec502163c435712d527eeced8d83348","status":"affected"},{"type":"git","introduced":"12c2d0a5b8e2a1afc8c7738e19a0d1dd7f3d4007","fixed":"0216721ce71252f60d89af49c8dff613358058d3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.17","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.117","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.58","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.8","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","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/cabb8cbeab49f4b74d78a91a277e00d4f6dd5d7d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5a5d2f7727752b64d13263eacd9f8d08a322e662","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c8ab03aa5bd9fd8bfe5d9552d8605826759fdd4d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3ac743c60ec502163c435712d527eeced8d83348","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0216721ce71252f60d89af49c8dff613358058d3","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-68320","url":"https://www.cve.org/CVERecord?id=CVE-2025-68320","licence":"CVE Terms of Use","modified":"2026-10-30T12:23:11.604Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-68320","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-68320","licence":"Public domain","modified":"2026-10-30T13:18:20.000Z"}],"updatedAt":"2026-11-25T22:59:09.541Z","epss":{"score":0.00444,"percentile":0.40371,"date":"2026-12-01T12:00:22.000Z"}}