{"id":"CVE-2026-45924","summary":"ksmbd: call ksmbd_vfs_kern_path_end_removing() on some error paths","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: call ksmbd_vfs_kern_path_end_removing() on some error paths\n\nThere are two places where ksmbd_vfs_kern_path_end_removing() needs to be\ncalled in order to balance what the corresponding successful call to\nksmbd_vfs_kern_path_start_removing() has done, i.e. drop inode locks and\nput the taken references.  Otherwise there might be potential deadlocks\nand unbalanced locks which are caught like:\n\nBUG: workqueue leaked lock or atomic: kworker/5:21/0x00000000/7596\n     last function: handle_ksmbd_work\n2 locks held by kworker/5:21/7596:\n #0: ffff8881051ae448 (sb_writers#3){.+.+}-{0:0}, at: ksmbd_vfs_kern_path_locked+0x142/0x660\n #1: ffff888130e966c0 (&type-\u003ei_mutex_dir_key#3/1){+.+.}-{4:4}, at: ksmbd_vfs_kern_path_locked+0x17d/0x660\nCPU: 5 PID: 7596 Comm: kworker/5:21 Not tainted 6.1.162-00456-gc29b353f383b #138\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-debian-1.17.0-1 04/01/2014\nWorkqueue: ksmbd-io handle_ksmbd_work\nCall Trace:\n \u003cTASK\u003e\n dump_stack_lvl+0x44/0x5b\n process_one_work.cold+0x57/0x5c\n worker_thread+0x82/0x600\n kthread+0x153/0x190\n ret_from_fork+0x22/0x30\n \u003c/TASK\u003e\n\nFound by Linux Verification Center (linuxtesting.org).","modified":"2026-11-13T04:06:05.196944727Z","published":"2026-05-27T12:17:43.229Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45924.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0c578e8065c4b08d5635a4cbc0f6321df9d20f79"},{"type":"WEB","url":"https://git.kernel.org/stable/c/34d6691933682f0516259a31b39d2cebcedec0a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4c38600feb81c670edb82e49d201d3d2d00cd4c3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8e3a3192ef78d8302916408d62813b1fddfc8972"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a09dc10d1353f0e92c21eae2a79af1c2b1ddcde8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cf29329a13df79c198b45dfc92577638d30b56fa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f221baa80e5959a0c08a7e34abbf2a4d3cf0e1c2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45924.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45924"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9d5012ffe14120f978ee34aef4df3d6cb026b7c4"},{"fixed":"8e3a3192ef78d8302916408d62813b1fddfc8972"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ac98d54630d5b52e3f684d872f0d82c06c418ea9"},{"fixed":"f221baa80e5959a0c08a7e34abbf2a4d3cf0e1c2"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1e858a7a51c7b8b009d8f246de7ceb7743b44a71"},{"fixed":"cf29329a13df79c198b45dfc92577638d30b56fa"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"814cfdb6358d9b84fcbec9918c8f938cc096a43a"},{"fixed":"34d6691933682f0516259a31b39d2cebcedec0a5"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d5fc1400a34b4ea5e8f2ce296ea12bf8c8421694"},{"fixed":"0c578e8065c4b08d5635a4cbc0f6321df9d20f79"},{"fixed":"4c38600feb81c670edb82e49d201d3d2d00cd4c3"},{"fixed":"a09dc10d1353f0e92c21eae2a79af1c2b1ddcde8"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a7dddd62578c2eb6cb28b8835556a121b5157323"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a726fef6d7d4cfc365d3434e3916dbfe78991a33"}]}],"versions":["v5.15.202","v5.15.201","v5.15.200","v5.15.199","v5.15.198","v5.15.197","v5.15.196","v5.15.195","v5.15.194","v5.15.193","v5.15.192","v5.15.191","v5.15.190","v6.1.166","v6.1.165","v6.1.164","v6.1.163","v6.1.162","v6.1.161","v6.1.160","v6.1.159","v6.1.158","v6.1.157","v6.1.156","v6.1.155","v6.1.154","v6.1.153","v6.1.152","v6.1.151","v6.1.150","v6.1.149","v6.6.129","v6.6.128","v6.6.127","v6.6.126","v6.6.125","v6.6.124","v6.6.123","v6.6.122","v6.6.121","v6.6.120","v6.6.119","v6.6.118","v6.6.117","v6.6.116","v6.6.115","v6.6.114","v6.6.113","v6.6.112","v6.6.111","v6.6.110","v6.6.109","v6.6.108","v6.6.107","v6.6.106","v6.6.105","v6.6.104","v6.6.103","v6.12.77","v6.12.76","v6.12.75","v6.12.74","v6.12.73","v6.12.72","v6.12.71","v6.12.70","v6.12.69","v6.12.68","v6.12.67","v6.12.66","v6.12.65","v6.12.64","v6.12.63","v6.12.62","v6.12.61","v6.12.60","v6.12.59","v6.12.58","v6.12.57","v6.12.56","v6.12.55","v6.12.54","v6.12.53","v6.12.52","v6.12.51","v6.12.50","v6.12.49","v6.12.48","v6.12.47","v6.12.46","v6.12.45","v6.12.44","v6.12.43","v6.15.11","v6.16.12","v6.16.11","v6.16.10","v6.16.9","v6.16.8","v6.16.7","v6.16.6","v6.16.5","v6.16.4","v6.16.3","v6.16.2"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45924.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.190"},{"fixed":"5.15.203"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.149"},{"fixed":"6.1.167"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.6.103"},{"fixed":"6.6.130"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.12.43"},{"fixed":"6.12.78"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.15.11"},{"fixed":"6.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.16.2"},{"fixed":"6.17"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.17.0"},{"fixed":"6.18.17"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-45924.json"}}],"schema_version":"1.9.2"}