Executive brief
A vulnerability in the Linux kernel's Network Block Device (NBD) driver could allow a local attacker to cause a system crash or instability. The NBD component, which allows a computer to use remote storage as if it were a local hard drive, failed to properly validate the types of network connections (sockets) it was using. By providing unexpected socket types, an attacker could trigger internal errors that disrupt system operations.
Technical details
A vulnerability was identified in the Linux kernel NBD (Network Block Device) driver where the `nbd_get_socket` function did not sufficiently validate the socket type provided during setup. While a previous fix ensured the socket supported a `shutdown()` method, it did not restrict the protocol family, allowing 'syzbot' and potentially local attackers to use unsupported socket types that could lead to kernel panics or undefined behavior. The fix explicitly restricts NBD to TCP and UNIX stream sockets by checking `sk_is_tcp` and `sk_is_stream_unix` within `drivers/block/nbd.c`. This issue affects various LTS kernel branches and has been patched in stable releases.
Affected products
- Linux Linux Kernel 4.14.152, 4.19.82, 5.3.9, 5.4, and others prior to 6.11
- Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.6 and all versions less than *
Timeline
- 2025-09-09: patched: Initial fix committed to mainline kernel
- 2025-10-28: disclosed: CVE published to NVD
References
- https://git.kernel.org/stable/c/37ad11f20e164c23ce827dd455b42c0fdd29685c
- https://git.kernel.org/stable/c/4f9e6ff6319dbcebea64b50af0304cf0ad7e97e7
- https://git.kernel.org/stable/c/808e2335bc1cf2293b9e36ccc94c267c81509c71
- https://git.kernel.org/stable/c/9f7c02e031570e8291a63162c6c046dc15ff85b0
- https://git.kernel.org/stable/c/c365e8f20f4201d873a70385bd919f0fb531e960
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html