Menu

Star on GitHub · 3.2k

CVE-2024-43882

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: exec: Fix ToCToU between perm check and set-uid/gid usage When opening a file for exec via do_filp_open(), permission checking…

Published Aug 21, 2024CWE-367EPSS 0.24%

Overview

CVE-2024-43882 is a high-severity vulnerability. It was published on August 21, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

exec: Fix ToCToU between perm check and set-uid/gid usage

When opening a file for exec via do_filp_open(), permission checking is

done against the file's metadata at that moment, and on success, a file

pointer is passed back. Much later in the execve() code path, the file

metadata (specifically mode, uid, and gid) is used to determine if/how

to set the uid and gid. However, those values may have changed since the

permissions check, meaning the execution may gain unintended privileges.

For example, if a file could change permissions from executable and not

set-id:

---------x 1 root root 16048 Aug 7 13:16 target

to set-id and non-executable:

---S------ 1 root root 16048 Aug 7 13:16 target

it is possible to gain root privileges when execution should have been

disallowed.

While this race condition is rare in real-world scenarios, it has been

observed (and proven exploitable) when package managers are updating

the

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-43882?

CVE-2024-43882 is a high-severity vulnerability. It was published on August 21, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-43882?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-43882?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-43882?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-43882 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2024

View all