# CVE-2022-49295: linux: In the Linux kernel, the following vulnerability has been resolved:  nbd: call genl_unregister_family() first in nbd_...

CVE-2022-49295 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-49295, released February 26, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2022-49295
- Priority: Routine
- CVSS: 4.7 (medium)
- EPSS: 0.0025
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 26, 2025

## Description

In the Linux kernel, the following vulnerability has been resolved:  nbd: call genl_unregister_family() first in nbd_cleanup()  Otherwise there may be race between module removal and the handling of netlink command, which can lead to the oops as shown below:    BUG: kernel NULL pointer dereference, address: 0000000000000098   Oops: 0002 [#1] SMP PTI   CPU: 1 PID: 31299 Comm: nbd-client Tainted: G            E     5.14.0-rc4   Hardware name: QEMU Standard PC (i440FX + PIIX, 1996)   RIP: 0010:down_write+0x1a/0x50   Call Trace:    start_creating+0x89/0x130    debugfs_create_dir+0x1b/0x130    nbd_start_device+0x13d/0x390 [nbd]    nbd_genl_connect+0x42f/0x748 [nbd]    genl_family_rcv_msg_doit.isra.0+0xec/0x150    genl_rcv_msg+0xe5/0x1e0    netlink_rcv_skb+0x55/0x100    genl_rcv+0x29/0x40    netlink_unicast+0x1a8/0x250    netlink_sendmsg+0x21b/0x430    ____sys_sendmsg+0x2a4/0x2d0    ___sys_sendmsg+0x81/0xc0    __sys_sendmsg+0x62/0xb0    __x64_sys_sendmsg+0x1f/0x30    do_syscall_64+0x3b/0xc0    entry_SYSCALL_64_after_hwframe+0x44/0xae   Modules linked in: nbd(E-)

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | linux Debian 12.15 (bookworm) | 5.18.5-1 | [DEBIAN-CVE-2022-49295](https://patchblox.com/security/data/fix/linux/debian-cve-2022-49295.md) | Feb 26, 2025 |
| Linux | linux Debian 13.5 (trixie) | 5.18.5-1 | [DEBIAN-CVE-2022-49295](https://patchblox.com/security/data/fix/linux/debian-cve-2022-49295.md) | Feb 26, 2025 |
| Linux | linux Debian 14 | 5.18.5-1 | [DEBIAN-CVE-2022-49295](https://patchblox.com/security/data/fix/linux/debian-cve-2022-49295.md) | Feb 26, 2025 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
