PT-2021-1528 · Linux+2 · Linux Kernel+2

Published

2021-02-21

·

Updated

2023-05-17

·

CVE-2022-4696

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 5.10.160
Description The issue is related to a use-after-free vulnerability in the Linux kernel through io uring and the IORING OP SPLICE operation. If IORING OP SPLICE is missing the IO WQ WORK FILES flag, which signals that the operation won't use current->nsproxy, so its reference counter is not increased. This assumption is not always true as calling io splice on specific files will call the get uts function which will use current->nsproxy leading to invalidly decreasing its reference counter later causing the use-after-free vulnerability.
Recommendations To resolve the issue, upgrade to version 5.10.160 or above. As a temporary workaround, consider restricting access to the io uring subsystem and the IORING OP SPLICE operation to minimize the risk of exploitation. Avoid using the IO WQ WORK FILES flag in the IORING OP SPLICE operation until the issue is resolved.

Exploit

Fix

Use After Free

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

Weakness Enumeration

Related Identifiers

ALT-PU-2021-1833
ALT-PU-2021-1888
ALT-PU-2021-1896
ALT-PU-2021-1983
ALT-PU-2021-3481
ALT-PU-2022-1240
ALT-PU-2022-1419
ALT-PU-2022-1421
ALT-PU-2023-1814
ASB-A-264692298
BDU:2023-00158
CVE-2022-4696
DLA-3349-1
DSA-5324-1
OESA-2023-1053
OESA-2023-1056

Affected Products

Alt Linux
Astra Linux
Linux Kernel