{"id":"CVE-2026-99853","summary":"nvme-tcp: fix io_work priority inversion when send_mutex is held","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-tcp: fix io_work priority inversion when send_mutex is held\n\nCommit f42d4796ee10 (\"nvme-tcp: fix I/O stalls on congested sockets\")\nadded a check in nvme_tcp_io_work() that sets pending to true when the\nqueue has pending requests and the socket is writeable. The check is\nplaced after the mutex_trylock() block, so it also runs when\nmutex_trylock(&queue-\u003esend_mutex) failed and io_work did not send\nanything.\n\nWhen .queue_rq sends a request directly from its own context, it holds\nsend_mutex and can give up the CPU in lock_sock_nested() when another\ntask needs the CPU, for example the io_work kworker of the same queue,\nwhich runs on the same CPU. Then io_work cannot take send_mutex, but\nthe requests are still on req_list and the socket is writeable, so\npending is set to true. io_work loops until the deadline and queues\nitself again on io_cpu, without sleeping.\n\nThis is a priority inversion. io_work runs on the high priority\nnvme_tcp_wq and cannot make progress until send_mutex is released, but\nit keeps running. The task holding send_mutex runs at normal priority\nand needs the CPU to release it. The scheduler keeps giving the CPU to\nio_work, so the task holding send_mutex may not run again, and the\nrequests on the queue are not sent and time out.\n\nThis is the same problem that commit 70f437fb4395 (\"nvme-tcp: fix\nio_work priority inversion\") fixed. That commit removed\n\"pending = !llist_empty(&queue-\u003ereq_list)\" from the path where\nmutex_trylock() fails, and let the task holding send_mutex queue\nio_work again in nvme_tcp_queue_request() after it releases the mutex.\nThe new check brings back the same behavior in a different form.\n\nTwo things make this easier to hit. nvme_tcp_queue_request() sends\ndirectly only when it runs on io_cpu, so the task that takes send_mutex\nis on the same CPU as the io_work kworker of that queue when it takes\nthe mutex. Also, when the tasks are in a cgroup with the cpu controller\nenabled, the whole group competes with the nice -20 kworker as one\nentity, so each task in the group gets even less CPU time.\n\nWe hit this on a 6 CPU VM running a database on nvme-tcp storage. In\nthe vmcore, 2 tasks held send_mutex of 2 queues and were runnable in\nlock_sock_nested() for 103 seconds, while the kworkers for those queues\nkept running io_work on their CPUs. All database tasks were in one\ncgroup, which got only about 0.3% of the CPU against the nice -20\nkworker. Requests timed out, and blk_mq_timeout_work() waited in\nsynchronize_srcu() for the tasks still in .queue_rq.\n\nOnly do the pending check if io_work could take send_mutex. If it could\nnot, the task holding send_mutex sends what it can in\nnvme_tcp_send_all(), and queues io_work again after it releases the\nmutex if requests are still pending, so no request is left behind.","modified":"2026-11-30T15:02:31.925342374Z","published":"2026-11-30T13:17:40.304Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99853.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/32bfe3eddb18691b482893c730fd71b0996e4aca"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5db358f3a7f9c33717622c1597d15c4c91997b19"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6aba58adb5ff9d4b62b820518f409f1ee615021a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bbca60a0ac5dca1d2f4e547f0fa0402001d12299"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99853.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99853"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7b86ce16706b985e27fe589675f1dee1708032c8"},{"fixed":"bbca60a0ac5dca1d2f4e547f0fa0402001d12299"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"f42d4796ee100fade86086d1cf98537fb4d326c8"},{"fixed":"32bfe3eddb18691b482893c730fd71b0996e4aca"},{"fixed":"6aba58adb5ff9d4b62b820518f409f1ee615021a"},{"fixed":"5db358f3a7f9c33717622c1597d15c4c91997b19"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8484cbcf59c0f222ef31a3dd2a7ab59506464554"}]}],"versions":["v6.12.117","v6.12.116","v6.12.115","v6.12.114","v6.12.113","v6.12.112","v6.12.111","v6.12.110","v6.12.109","v6.12.108","v6.12.107","v6.12.106","v6.12.105","v6.12.104","v6.12.103","v6.12.102","v6.12.101","v6.12.100","v6.12.99","v6.12.98","v6.12.97","v6.12.96","v6.12.95","v6.12.94","v6.12.93","v6.12.92","v6.12.91","v6.12.90","v6.12.89","v6.12.88","v6.12.87","v6.12.86","v6.12.85","v6.12.84","v6.12.83","v6.12.82","v6.12.81","v6.12.80","v6.12.79","v6.12.78","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.12.42","v6.12.41","v6.12.40","v6.12.39","v6.12.38","v6.12.37","v6.12.36","v6.15.11","v6.15.10","v6.15.9","v6.15.8","v6.15.7","v6.15.6","v6.15.5"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99853.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.12.36"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.15.5"},{"fixed":"6.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.16.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99853.json"}}],"schema_version":"1.9.2"}