CVE-2024-43891 Vulnerability Analysis & Exploit Details

CVE-2024-43891
Vulnerability Scoring

4.7
/10
Medium Risk

The vulnerability CVE-2024-43891 could compromise system integrity but typically requires user interaction to be exploited.

Attack Complexity Details

  • Attack Complexity: High
    Exploits require significant effort and special conditions.
  • Attack Vector: Local
    Vulnerability requires local system access.
  • Privileges Required: Low
    Some privileges are necessary to exploit the vulnerability.
  • Scope: Unchanged
    Exploit remains within the originally vulnerable component.
  • User Interaction: None
    No user interaction is necessary for exploitation.

CVE-2024-43891 Details

Status: Analyzed

Last updated: 🕡 05 Sep 2024, 18:46 UTC
Originally published on: 🕚 26 Aug 2024, 11:15 UTC

Time between publication and last update: 10 days

CVSS Release: version 3

CVSS3 Source

nvd@nist.gov

CVSS3 Type

Primary

CVSS3 Vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

CVE-2024-43891 Vulnerability Summary

CVE-2024-43891: In the Linux kernel, the following vulnerability has been resolved: tracing: Have format file honor EVENT_FILE_FL_FREED When eventfs was introduced, special care had to be done to coordinate the freeing of the file meta data with the files that are exposed to user space. The file meta data would have a ref count that is set when the file is created and would be decremented and freed after the last user that opened the file closed it. When the file meta data was to be freed, it would set a flag (EVENT_FILE_FL_FREED) to denote that the file is freed, and any new references made (like new opens or reads) would fail as it is marked freed. This allowed other meta data to be freed after this flag was set (under the event_mutex). All the files that were dynamically created in the events directory had a pointer to the file meta data and would call event_release() when the last reference to the user space file was closed. This would be the time that it is safe to free the file meta data. A shortcut was made for the "format" file. It's i_private would point to the "call" entry directly and not point to the file's meta data. This is because all format files are the same for the same "call", so it was thought there was no reason to differentiate them. The other files maintain state (like the "enable", "trigger", etc). But this meant if the file were to disappear, the "format" file would be unaware of it. This caused a race that could be trigger via the user_events test (that would create dynamic events and free them), and running a loop that would read the user_events format files: In one console run: # cd tools/testing/selftests/user_events # while true; do ./ftrace_test; done And in another console run: # cd /sys/kernel/tracing/ # while true; do cat events/user_events/__test_event/format; done 2>/dev/null With KASAN memory checking, it would trigger a use-after-free bug report (which was a real bug). This was because the format file was not checking the file's meta data flag "EVENT_FILE_FL_FREED", so it would access the event that the file meta data pointed to after the event was freed. After inspection, there are other locations that were found to not check the EVENT_FILE_FL_FREED flag when accessing the trace_event_file. Add a new helper function: event_file_file() that will make sure that the event_mutex is held, and will return NULL if the trace_event_file has the EVENT_FILE_FL_FREED flag set. Have the first reference of the struct file pointer use event_file_file() and check for NULL. Later uses can still use the event_file_data() helper function if the event_mutex is still held and was not released since the event_file_file() call.

Assessing the Risk of CVE-2024-43891

Access Complexity Graph

The exploitability of CVE-2024-43891 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2024-43891

This vulnerability, CVE-2024-43891, requires a high level of attack complexity and low privileges, making it difficult but not impossible to exploit. Organizations should ensure robust security configurations to mitigate risks.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2024-43891, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2024-43891, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: None
    CVE-2024-43891 has no significant impact on data confidentiality.
  • Integrity: None
    CVE-2024-43891 poses no threat to data integrity.
  • Availability: High
    CVE-2024-43891 can disrupt system operations, potentially causing complete denial of service (DoS).

Exploit Prediction Scoring System (EPSS)

The EPSS score estimates the probability that this vulnerability will be exploited in the near future.

EPSS Score: 0.042% (probability of exploit)

EPSS Percentile: 5.07% (lower percentile = lower relative risk)
This vulnerability is less risky than approximately 94.93% of others.

CVE-2024-43891 References

External References

CWE Common Weakness Enumeration

CWE-416

Vulnerable Configurations

  • cpe:2.3:o:linux:linux_kernel:6.6.33:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.33:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.34:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.34:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.35:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.35:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.36:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.36:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.37:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.37:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.38:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.38:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.39:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.39:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.40:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.40:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.41:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.41:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.42:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.42:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.43:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.43:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.6.44:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.6.44:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9.11:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9.11:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9.12:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9.12:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9:rc5:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9:rc5:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9:rc6:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9:rc6:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9:rc7:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.9:rc7:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.10:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.10:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.10.0:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.10.0:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.10.0:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.10.0:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.10.0:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.10.0:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.10.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.10.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.10.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.10.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.10.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.10.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.11:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.11:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.11:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.11:rc2:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2024-43891: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-3805 – A vulnerability classified as critical was found in sarrionandia tournatrack up to 4c13a23f43da5317eea4614870a7a8510fc540ec. Affected by this vulne...
  • CVE-2025-3804 – A vulnerability classified as critical has been found in thautwarm vscode-diana 0.0.1. Affected is an unknown function of the file Gen.py of the co...
  • CVE-2025-3803 – A vulnerability was found in Tenda W12 and i24 3.0.0.4(2887)/3.0.0.5(3644). It has been rated as critical. This issue affects the function cgiSysSc...
  • CVE-2025-3802 – A vulnerability was found in Tenda W12 and i24 3.0.0.4(2887)/3.0.0.5(3644). It has been declared as critical. This vulnerability affects the functi...
  • CVE-2025-3801 – A vulnerability was found in songquanpeng one-api up to 0.6.10. It has been classified as problematic. This affects an unknown part of the componen...