{"id":"CVE-2022-50314","aliases":["CVE-2022-50314"],"related":[],"kind":"vulnerability","state":"published","title":"nbd: Fix hung when signal interrupts nbd_start_device_ioctl()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnbd: Fix hung when signal interrupts nbd_start_device_ioctl()\n\nsyzbot reported hung task [1].  The following program is a simplified\nversion of the reproducer:\n\nint main(void)\n{\n\tint sv[2], fd;\n\n\tif (socketpair(AF_UNIX, SOCK_STREAM, 0, sv) < 0)\n\t\treturn 1;\n\tif ((fd = open(\"/dev/nbd0\", 0)) < 0)\n\t\treturn 1;\n\tif (ioctl(fd, NBD_SET_SIZE_BLOCKS, 0x81) < 0)\n\t\treturn 1;\n\tif (ioctl(fd, NBD_SET_SOCK, sv[0]) < 0)\n\t\treturn 1;\n\tif (ioctl(fd, NBD_DO_IT) < 0)\n\t\treturn 1;\n\treturn 0;\n}\n\nWhen signal interrupt nbd_start_device_ioctl() waiting the condition\natomic_read(&config->recv_threads) == 0, the task can hung because it\nwaits the completion of the inflight IOs.\n\nThis patch fixes the issue by clearing queue, not just shutdown, when\nsignal interrupt nbd_start_device_ioctl().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnbd: Fix hung when signal interrupts nbd_start_device_ioctl()\n\nsyzbot reported hung task [1].  The following program is a simplified\nversion of the reproducer:\n\nint main(void)\n{\n\tint sv[2], fd;\n\n\tif (socketpair(AF_UNIX, SOCK_STREAM, 0, sv) < 0)\n\t\treturn 1;\n\tif ((fd = open(\"/dev/nbd0\", 0)) < 0)\n\t\treturn 1;\n\tif (ioctl(fd, NBD_SET_SIZE_BLOCKS, 0x81) < 0)\n\t\treturn 1;\n\tif (ioctl(fd, NBD_SET_SOCK, sv[0]) < 0)\n\t\treturn 1;\n\tif (ioctl(fd, NBD_DO_IT) < 0)\n\t\treturn 1;\n\treturn 0;\n}\n\nWhen signal interrupt nbd_start_device_ioctl() waiting the condition\natomic_read(&config->recv_threads) == 0, the task can hung because it\nwaits the completion of the inflight IOs.\n\nThis patch fixes the issue by clearing queue, not just shutdown, when\nsignal interrupt nbd_start_device_ioctl().","source":"cvelist"}],"published":"2025-09-15T14:46:09.240Z","modified":"2026-11-05T20:17:34.063Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5ea8d10802ec4c153a6e21eebaf412e2abd29736","fixed":"3ba3846cb3e2fb3c6fbf79e998472821b298419e","status":"affected"},{"type":"git","introduced":"5ea8d10802ec4c153a6e21eebaf412e2abd29736","fixed":"c7b4641bd2395c2f3cd3b0a0cbf292ed9d489398","status":"affected"},{"type":"git","introduced":"5ea8d10802ec4c153a6e21eebaf412e2abd29736","fixed":"3575949513ea3b387b30dac1e69468a923c86caf","status":"affected"},{"type":"git","introduced":"5ea8d10802ec4c153a6e21eebaf412e2abd29736","fixed":"b2700f98b3f4dd19fb4315b70581e5caff89eb49","status":"affected"},{"type":"git","introduced":"5ea8d10802ec4c153a6e21eebaf412e2abd29736","fixed":"c0d73be0af8c1310713bc39a8d7a22e35084e14f","status":"affected"},{"type":"git","introduced":"5ea8d10802ec4c153a6e21eebaf412e2abd29736","fixed":"62006a72b05e0d38727eef5188700f2488be5e89","status":"affected"},{"type":"git","introduced":"5ea8d10802ec4c153a6e21eebaf412e2abd29736","fixed":"35fb7d4a53d9e36d1b91161ea9870d9c6d57dccf","status":"affected"},{"type":"git","introduced":"5ea8d10802ec4c153a6e21eebaf412e2abd29736","fixed":"1de7c3cf48fc41cd95adb12bd1ea9033a917798a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.12","status":"unaffected"},{"type":"semver","introduced":"4.14.296","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.262","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.220","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.150","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.75","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.19.17","lastAffected":"5.19.*","status":"unaffected"},{"type":"semver","introduced":"6.0.3","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.14.296"},{"status":"affected","introduced":"4.15","fixed":"4.19.262"},{"status":"affected","introduced":"4.20","fixed":"5.4.220"},{"status":"affected","introduced":"5.5","fixed":"5.10.150"},{"status":"affected","introduced":"5.11","fixed":"5.15.75"},{"status":"affected","introduced":"5.16","fixed":"5.19.17"},{"status":"affected","introduced":"6.0","fixed":"6.0.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3ba3846cb3e2fb3c6fbf79e998472821b298419e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c7b4641bd2395c2f3cd3b0a0cbf292ed9d489398","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3575949513ea3b387b30dac1e69468a923c86caf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b2700f98b3f4dd19fb4315b70581e5caff89eb49","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c0d73be0af8c1310713bc39a8d7a22e35084e14f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/62006a72b05e0d38727eef5188700f2488be5e89","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/35fb7d4a53d9e36d1b91161ea9870d9c6d57dccf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1de7c3cf48fc41cd95adb12bd1ea9033a917798a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:09:37.321Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50314","url":"https://www.cve.org/CVERecord?id=CVE-2022-50314","licence":"CVE Terms of Use","modified":"2026-11-05T20:10:34.522Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50314","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50314","licence":"Public domain","modified":"2026-11-05T20:17:34.063Z"}],"updatedAt":"2026-11-25T22:58:21.160Z","epss":{"score":0.00167,"percentile":0.06228,"date":"2026-12-01T12:00:22.000Z"}}