PT-2024-11431 · Linux+4 · Linux Kernel+4

Jiazi Li

·

Published

2021-10-12

·

Updated

2024-06-25

·

CVE-2021-47435

CVSS v3.1

4.7

Medium

VectorAV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The vulnerability is related to a NULL pointer dereference in the Linux kernel when completing IO. The issue arises when dm io dec pending() calls end io acct() first, followed by decrementing the in-flight pending count. If a task is swapping the DM table at the same time, it can result in a crash due to mempool->elements being NULL. The call trace includes functions such as mempool free(), bio put(), dec pending(), clone endio(), and bio endio(). To fix this, establish pointers to struct dm io members in dm io dec pending() to pass into end io acct() after free io() is called, and move end io acct() after free io().
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

NULL Pointer Dereference

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

Weakness Enumeration

Related Identifiers

BDU:2025-03663
CESA-2022_1975
CESA-2022_1988
CVE-2021-47435
OPENSUSE-SU-2024_2185-1
OPENSUSE-SU-2024_2189-1
RHSA-2022:1975
RHSA-2022:1988
RHSA-2022:5220
RHSA-2022:5626
RHSA-2022_1975
RHSA-2022_1988
SUSE-SU-2024:1979-1
SUSE-SU-2024:1983-1
SUSE-SU-2024:2008-1
SUSE-SU-2024:2010-1
SUSE-SU-2024:2011-1
SUSE-SU-2024:2019-1
SUSE-SU-2024:2184-1
SUSE-SU-2024:2185-1
SUSE-SU-2024:2189-1
SUSE-SU-2024:2190-1

Affected Products

Astra Linux
Centos
Linux Kernel
Red Hat
Suse