PT-2024-3463

CVE-2024-26688

·

Published

2024-02-07

·

Updated

2025-01-07

Description by

CVSS 3.1
7.8
High
MetricsAV: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.8.0-rc2-default+
Description The vulnerability is related to a NULL pointer dereference in the hugetlbfs fill super() function when configuring a hugetlb filesystem via the fsconfig() syscall. This occurs when the requested pagesize is non-valid, causing the ctx->hstate to be replaced with NULL. Later, when dereferencing ctx->hstate in hugetlbfs fill super(), it results in a NULL pointer dereference, leading to a kernel crash.
The issue arises from the following steps:
  1. Opening a hugetlbfs filesystem using fsopen().
  2. Setting the pagesize using fsconfig() with an invalid value.
  3. Creating the filesystem using fsconfig() with FSCONFIG CMD CREATE.
Technical details about exploitation include:
  • API Endpoints: The vulnerability is exploited through the fsconfig() syscall, specifically when setting the pagesize parameter.
  • Vulnerable Parameters or Variables: The ctx->hstate variable is vulnerable as it is replaced with NULL when an invalid pagesize is requested.
  • Function Names: The hugetlbfs fill super() and hugetlbfs parse param() functions are involved in the vulnerability.
Recommendations To resolve the issue, update the Linux kernel to a version that includes the fix for the NULL pointer dereference in hugetlbfs fill super(). As a temporary workaround, consider restricting the use of the hugetlbfs filesystem or validating the pagesize parameter before setting it via fsconfig().
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
DLA-3842-1
DSA-5658-1
DSA-5681-1
OESA-2024-1619
OESA-2024-1620
OESA-2024-1621
OESA-2024-1622
OPENSUSE-SU-2024_1641-1
OPENSUSE-SU-2024_1642-1
OPENSUSE-SU-2024_1644-1
OPENSUSE-SU-2024_1659-1
OPENSUSE-SU-2024_1663-1
SUSE-SU-2024:1641-1
SUSE-SU-2024:1642-1
SUSE-SU-2024:1644-1
SUSE-SU-2024:1645-1
SUSE-SU-2024:1647-1
SUSE-SU-2024:1650-1
SUSE-SU-2024:1659-1
SUSE-SU-2024:1663-1
USN-6820-1
USN-6820-2
USN-6821-1
USN-6821-2
USN-6821-3
USN-6821-4
USN-6828-1
USN-6831-1
USN-6867-1
USN-6871-1
USN-6892-1
USN-6895-1
USN-6895-2
USN-6895-3
USN-6895-4
USN-6900-1
USN-6919-1
Found an issue in the description? Have something to add? Feel free to write us 👾