PT-2024-7045 · Linux+6 · Linux Kernel+6

Al Viro

·

Published

2024-06-16

·

Updated

2025-09-29

·

CVE-2024-41070

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 6.6.43
Description A use-after-free vulnerability in the kvm spapr tce attach iommu group() function in the Linux kernel allows an attacker to potentially impact the confidentiality, integrity, and availability of protected information. The vulnerability occurs when the function looks up stt from tablefd and continues to use it after doing fdput() on the returned fd, which can be closed by another thread, freeing stt. Although there are calls to rcu read lock() in kvm spapr tce attach iommu group(), they are not sufficient to prevent the use-after-free, as stt is used outside the locked regions. The issue can be detected by KASAN with an artificial delay after the fdput() and a userspace program that triggers the race.
Recommendations To resolve the issue, update the Linux kernel to version 6.6.43 or later. As a temporary workaround, consider delaying the fdput() until stt is no longer in use, which is effectively the entire kvm spapr tce attach iommu group() function. To keep the patch minimal, add a call to fdput() at each of the existing return paths. Future work can convert the function to goto or cleanup style cleanup.

Exploit

Fix

Use After Free

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

Weakness Enumeration

Related Identifiers

ALSA-2025_16880
ALT-PU-2024-10465
ALT-PU-2024-11524
ALT-PU-2024-11855
ALT-PU-2024-11863
ALT-PU-2024-12537
ALT-PU-2024-13121
ALT-PU-2024-13979
ALT-PU-2024-14046
AZL-47991
BDU:2024-08303
CVE-2024-41070
DLA-4008-1
DSA-5747-1
MGASA-2024-0277
MGASA-2024-0278
OESA-2024-1961
OESA-2024-1962
OESA-2024-1964
OESA-2025-1078
OPENSUSE-SU-2024_2947-1
SUSE-SU-2024:2892-1
SUSE-SU-2024:2894-1
SUSE-SU-2024:2901-1
SUSE-SU-2024:2939-1
SUSE-SU-2024:2940-1
SUSE-SU-2024:2947-1
SUSE-SU-2024:3194-1
SUSE-SU-2024:3195-1
SUSE-SU-2024:3383-1
SUSE-SU-2025:20044-1
SUSE-SU-2025:20047-1
USN-7088-1
USN-7088-2
USN-7088-3
USN-7088-4
USN-7088-5
USN-7089-1
USN-7089-2
USN-7089-3
USN-7089-4
USN-7089-5
USN-7089-6
USN-7089-7
USN-7090-1
USN-7095-1
USN-7100-1
USN-7100-2
USN-7119-1
USN-7123-1
USN-7144-1
USN-7156-1
USN-7194-1
USN-7627-1
USN-7627-2

Affected Products

Alt Linux
Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu