CVE-2026-45924: ksmbd: call ksmbd_vfs_kern_path_end_removing() on some error paths

Published May 27, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: call ksmbdvfskernpathendremoving() on some error paths

There are two places where ksmbdvfskernpathendremoving() needs to be called in order to balance what the corresponding successful call to ksmbdvfskernpathstartremoving() has done, i.e. drop inode locks and put the taken references. Otherwise there might be potential deadlocks and unbalanced locks which are caught like:

BUG: workqueue leaked lock or atomic: kworker/5:21/0x00000000/7596 last function: handleksmbdwork 2 locks held by kworker/5:21/7596: #0: ffff8881051ae448 (sbwriters#3){.+.+}-{0:0}, at: ksmbdvfskernpathlocked+0x142/0x660 #1: ffff888130e966c0 (&type->imutexdirkey#3/1){+.+.}-{4:4}, at: ksmbdvfskernpathlocked+0x17d/0x660 CPU: 5 PID: 7596 Comm: kworker/5:21 Not tainted 6.1.162-00456-gc29b353f383b #138 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.17.0-debian-1.17.0-1 04/01/2014 Workqueue: ksmbd-io handleksmbdwork Call Trace: <TASK> dumpstacklvl+0x44/0x5b processonework.cold+0x57/0x5c workerthread+0x82/0x600 kthread+0x153/0x190 retfromfork+0x22/0x30 </TASK>

Found by Linux Verification Center (linuxtesting.org).

Affected Software

8 affected components
Linux Linux kernel
Linux Linux kernel>=5.15.190<5.15.203
Linux Linux kernel>=6.1.149<6.1.167
Linux Linux kernel>=6.6.103<6.6.130
Linux Linux kernel>=6.12.43<6.12.78
Linux Linux kernel>=6.15.11<6.16
Linux Linux kernel>=6.16.2<6.18.17
Linux Linux kernel>=6.19<6.19.4

Event History

May 27, 2026
CVE Published
via MITRE·12:17 PM
Data Sourced
via MITRE·12:17 PM
Description
Data Sourced
via NVD·02:17 PM
RemedyDescriptionSeverityWeaknessAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203