PT-2024-10334 · Linux+3 · Linux Kernel+3

Sun Ke

·

Published

2024-02-28

·

Updated

2024-12-06

·

CVE-2021-46981

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 5.11.0-rc5-00040-g76c057c84d28
Description The vulnerability is related to a NULL pointer dereference in the flush workqueue function when disconnecting from a network block device (/dev/nbdX). The issue occurs when the config refs is 1 and the pointers in nbd device are still null. This can lead to a kernel crash. The vulnerability can be exploited by an attacker to cause a denial-of-service (DoS) condition.
To fix the issue, add a check for nbd->recv workq in the nbd disconnect and put function.
Recommendations For Linux kernel versions prior to 5.11.0-rc5-00040-g76c057c84d28, add if (nbd->recv workq) to nbd disconnect and put().

Exploit

Fix

NULL Pointer Dereference

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2025-00814
CVE-2021-46981
OPENSUSE-SU-2024_1489-1
SUSE-SU-2024:1454-1
SUSE-SU-2024:1465-1
SUSE-SU-2024:1489-1
SUSE-SU-2024:1643-1
SUSE-SU-2024:1646-1
SUSE-SU-2024:1870-1
USN-6777-1
USN-6777-2
USN-6777-3
USN-6777-4

Affected Products

Astra Linux
Linux Kernel
Suse
Ubuntu