PT-2024-11095 · Linux+2 · Linux Kernel+2

Hugh Dickins

·

Published

2021-05-14

·

Updated

2024-12-26

·

CVE-2021-46988

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 (affected versions not specified)
Description The issue arises when userspace issues a UFFD ioctl, which calls into shmem mfill atomic pte(). If the copy from user() fails after successfully accounting blocks and allocating a page with shmem alloc page(), the error code -ENOENT is returned without releasing the allocated page. This can lead to a situation where another process fills up the tmpfs, causing shmem mfill atomic pte() to fail when retried, resulting in a BUG ON assertion failure because the page is not consumed. The fix involves detecting and releasing any "dangling" pages when accounting fails.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Use After Free

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

Weakness Enumeration

Related Identifiers

BDU:2025-06527
CVE-2021-46988
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

Affected Products

Astra Linux
Linux Kernel
Suse