CVE-2022-50314: nbd: Fix hung when signal interrupts nbd_start_device_ioctl()

Published Sep 15, 2025
·
Updated

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

nbd: Fix hung when signal interrupts nbdstartdeviceioctl()

syzbot reported hung task [1]. The following program is a simplified version of the reproducer:

int main(void) { int sv[2], fd;

if (socketpair(AFUNIX, SOCKSTREAM, 0, sv) < 0) return 1; if ((fd = open("/dev/nbd0", 0)) < 0) return 1; if (ioctl(fd, NBDSETSIZEBLOCKS, 0x81) < 0) return 1; if (ioctl(fd, NBDSETSOCK, sv[0]) < 0) return 1; if (ioctl(fd, NBDDOIT) < 0) return 1; return 0; }

When signal interrupt nbdstartdeviceioctl() waiting the condition atomicread(&config->recvthreads) == 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 nbdstartdeviceioctl().

Affected Software

8 affected components
Linux Kernel
Linux Linux kernel<4.14.296
Linux Linux kernel>=4.15<4.19.262
Linux Linux kernel>=4.20<5.4.220
Linux Linux kernel>=5.5<5.10.150
Linux Linux kernel>=5.11<5.15.75
Linux Linux kernel>=5.16<5.19.17
Linux Linux kernel>=6.0<6.0.3

Event History

Sep 15, 2025
CVE Published
via MITRE·02:46 PM
Data Sourced
via MITRE·02:46 PM
Description
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-50314?

CVE-2022-50314 is classified as a minor severity vulnerability in the Linux kernel.

2

How do I fix CVE-2022-50314?

To fix CVE-2022-50314, you should update your Linux kernel to the latest version that includes the patches for this vulnerability.

3

What type of vulnerability is CVE-2022-50314?

CVE-2022-50314 is related to a hung task caused by a signal interrupt in the nbd_start_device_ioctl() function within the Linux kernel.

4

Which versions of the Linux kernel are affected by CVE-2022-50314?

CVE-2022-50314 affects certain versions of the Linux kernel prior to the application of specific patches that resolve the issue.

5

What are the potential impacts of CVE-2022-50314?

The potential impact of CVE-2022-50314 is a hung task which could lead to denial of service due to process stalls in the system.

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