CVE-2023-52934 Vulnerability Analysis & Exploit Details

CVE-2023-52934
Vulnerability Scoring

7.8
/10
Very High Risk

Highly exploitable, CVE-2023-52934 poses a critical security risk that could lead to severe breaches.

Attack Complexity Details

  • Attack Complexity: Low
    Exploits can be performed without significant complexity or 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-2023-52934 Details

Status: Modified

Last updated: 🕙 04 Aug 2026, 10:18 UTC
Originally published on: 🕔 27 Mar 2025, 17:15 UTC

Time between publication and last update: 494 days

CVSS Release: version 3

CVSS3 Source

416baaa9-dc9f-4396-8d5f-8c081fb06d67

CVSS3 Type

Secondary

CVSS3 Vector

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

CVE-2023-52934 Vulnerability Summary

CVE-2023-52934: In the Linux kernel, the following vulnerability has been resolved: mm/MADV_COLLAPSE: catch !none !huge !bad pmd lookups In commit 34488399fa08 ("mm/madvise: add file and shmem support to MADV_COLLAPSE") we make the following change to find_pmd_or_thp_or_none(): - if (!pmd_present(pmde)) - return SCAN_PMD_NULL; + if (pmd_none(pmde)) + return SCAN_PMD_NONE; This was for-use by MADV_COLLAPSE file/shmem codepaths, where MADV_COLLAPSE might identify a pte-mapped hugepage, only to have khugepaged race-in, free the pte table, and clear the pmd. Such codepaths include: A) If we find a suitably-aligned compound page of order HPAGE_PMD_ORDER already in the pagecache. B) In retract_page_tables(), if we fail to grab mmap_lock for the target mm/address. In these cases, collapse_pte_mapped_thp() really does expect a none (not just !present) pmd, and we want to suitably identify that case separate from the case where no pmd is found, or it's a bad-pmd (of course, many things could happen once we drop mmap_lock, and the pmd could plausibly undergo multiple transitions due to intervening fault, split, etc). Regardless, the code is prepared install a huge-pmd only when the existing pmd entry is either a genuine pte-table-mapping-pmd, or the none-pmd. However, the commit introduces a logical hole; namely, that we've allowed !none- && !huge- && !bad-pmds to be classified as genuine pte-table-mapping-pmds. One such example that could leak through are swap entries. The pmd values aren't checked again before use in pte_offset_map_lock(), which is expecting nothing less than a genuine pte-table-mapping-pmd. We want to put back the !pmd_present() check (below the pmd_none() check), but need to be careful to deal with subtleties in pmd transitions and treatments by various arch. The issue is that __split_huge_pmd_locked() temporarily clears the present bit (or otherwise marks the entry as invalid), but pmd_present() and pmd_trans_huge() still need to return true while the pmd is in this transitory state. For example, x86's pmd_present() also checks the _PAGE_PSE , riscv's version also checks the _PAGE_LEAF bit, and arm64 also checks a PMD_PRESENT_INVALID bit. Covering all 4 cases for x86 (all checks done on the same pmd value): 1) pmd_present() && pmd_trans_huge() All we actually know here is that the PSE bit is set. Either: a) We aren't racing with __split_huge_page(), and PRESENT or PROTNONE is set. => huge-pmd b) We are currently racing with __split_huge_page(). The danger here is that we proceed as-if we have a huge-pmd, but really we are looking at a pte-mapping-pmd. So, what is the risk of this danger? The only relevant path is: madvise_collapse() -> collapse_pte_mapped_thp() Where we might just incorrectly report back "success", when really the memory isn't pmd-backed. This is fine, since split could happen immediately after (actually) successful madvise_collapse(). So, it should be safe to just assume huge-pmd here. 2) pmd_present() && !pmd_trans_huge() Either: a) PSE not set and either PRESENT or PROTNONE is. => pte-table-mapping pmd (or PROT_NONE) b) devmap. This routine can be called immediately after unlocking/locking mmap_lock -- or called with no locks held (see khugepaged_scan_mm_slot()), so previous VMA checks have since been invalidated. 3) !pmd_present() && pmd_trans_huge() Not possible. 4) !pmd_present() && !pmd_trans_huge() Neither PRESENT nor PROTNONE set => not present I've checked all archs that implement pmd_trans_huge() (arm64, riscv, powerpc, longarch, x86, mips, s390) and this logic roughly translates (though devmap treatment is unique to x86 and powerpc, and (3) doesn't necessarily hold in general -- but that doesn't matter since !pmd_present() always takes failure path). Also, add a comment above find_pmd_or_thp_or_none() ---truncated---

Assessing the Risk of CVE-2023-52934

Access Complexity Graph

The exploitability of CVE-2023-52934 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-2023-52934

CVE-2023-52934 presents an accessible attack vector with minimal effort required. Restricting access controls and implementing security updates are critical to reducing exploitation 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-2023-52934, 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-2023-52934, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: High
    Exploiting CVE-2023-52934 can result in unauthorized access to sensitive data, severely compromising data privacy.
  • Integrity: High
    CVE-2023-52934 could allow unauthorized modifications to data, potentially affecting system reliability and trust.
  • Availability: High
    CVE-2023-52934 can disrupt system operations, potentially causing complete denial of service (DoS).

CVE-2023-52934 References

External References

CWE Common Weakness Enumeration

CWE-362

CAPEC Common Attack Pattern Enumeration and Classification

  • Leveraging Race Conditions CAPEC-26 The adversary targets a race condition occurring when multiple processes access and manipulate the same resource concurrently, and the outcome of the execution depends on the particular order in which the access takes place. The adversary can leverage a race condition by "running the race", modifying the resource and modifying the normal execution flow. For instance, a race condition can occur while accessing a file: the adversary can trick the system by replacing the original file with their version and cause the system to read the malicious file.
  • Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions CAPEC-29 This attack targets a race condition occurring between the time of check (state) for a resource and the time of use of a resource. A typical example is file access. The adversary can leverage a file access race condition by "running the race", meaning that they would modify the resource between the first time the target program accesses the file and the time the target program uses the file. During that period of time, the adversary could replace or modify the file, causing the application to behave unexpectedly.

Vulnerable Configurations

  • cpe:2.3:o:linux:linux_kernel:6.1:-:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1:-:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1.0:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1.0:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1.1:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1.1:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1.2:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1.2:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1.3:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1.3:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1.4:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1.4:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1.5:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1.5:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1.6:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1.6:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1.7:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1.7:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1.8:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1.8:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1.9:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1.9:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.1.10:*:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.1.10:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.2:rc1:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.2:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.2:rc2:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.2:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.2:rc3:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.2:rc3:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.2:rc4:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.2:rc4:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.2:rc5:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.2:rc5:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.2:rc6:*:*:*:*:*:*
    cpe:2.3:o:linux:linux_kernel:6.2:rc6:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2023-52934: 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-2026-90555 – vLLM versions before 0.28.0 fail to validate audio sample rate headers in the transcription endpoint, allowing authenticated clients to bypass dura...
  • CVE-2026-90554 – vLLM versions >=0.10.2 and <0.28.0 do not apply any audio decode-size or duration limit when extracting audio from video input for NanoNemotronVL m...
  • CVE-2026-90553 – vLLM before 0.28.0 contains a remote code execution vulnerability in the LlavaOnevision2 processor loader that ignores the trust_remote_code parame...
  • CVE-2026-90552 – WWBN AVideo through commit c3edcc274c389816d434acadac07ee78eaf330c1 fails to validate playlist ownership in the Playlists_schedules/list.json.php a...
  • CVE-2026-90551 – WWBN AVideo through commit c3edcc274c389816d434acadac07ee78eaf330c1 fails to validate playlist ownership in the video_from_program API endpoint, al...