{"id":"DEBIAN-CVE-2022-50314","details":"In the Linux kernel, the following vulnerability has been resolved:  nbd: Fix hung when signal interrupts nbd_start_device_ioctl()  syzbot reported hung task [1].  The following program is a simplified version of the reproducer:  int main(void) { \tint sv[2], fd;  \tif (socketpair(AF_UNIX, SOCK_STREAM, 0, sv) \u003c 0) \t\treturn 1; \tif ((fd = open(\"/dev/nbd0\", 0)) \u003c 0) \t\treturn 1; \tif (ioctl(fd, NBD_SET_SIZE_BLOCKS, 0x81) \u003c 0) \t\treturn 1; \tif (ioctl(fd, NBD_SET_SOCK, sv[0]) \u003c 0) \t\treturn 1; \tif (ioctl(fd, NBD_DO_IT) \u003c 0) \t\treturn 1; \treturn 0; }  When signal interrupt nbd_start_device_ioctl() waiting the condition atomic_read(&config-\u003erecv_threads) == 0, the task can hung because it waits the completion of the inflight IOs.  This patch fixes the issue by clearing queue, not just shutdown, when signal interrupt nbd_start_device_ioctl().","modified":"2026-09-01T16:05:34.925206744Z","published":"2025-09-15T15:15:43.247Z","upstream":["CVE-2022-50314"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-50314"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.3-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50314.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.3-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50314.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.3-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/osv-test-debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50314.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}