CVE-2025-40203

Description

A flaw was found in the Linux kernel’s listmount() function: the code calls path_put() while holding the namespace semaphore. Under certain conditions, this can drop the final reference to a path object inappropriately, leading to unstable behavior in mount/namespace operations.

Statement

A locking and lifetime bug in listmount can call path_put while namespace_sem is still held. If this drops the final path or mount reference, cleanup can enter a path that requires namespace synchronization and leave the calling task or mount namespace operations deadlocked. For the CVSS the PR:L value is selected because an unprivileged local process can invoke the listmount syscall, while reliable triggering depends on arranging the final reference condition and therefore AC:H is appropriate. The demonstrated primitive is a deadlock and availability loss with no evidence of UAF, OOB access, information disclosure, or an arbitrary write. The paranoid impact is A:H because a permanently held namespace_sem may block mount topology changes system wide.

Mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score4.7N/A7.8
Attack VectorLocalN/ALocal
Attack ComplexityHighN/ALow
Privileges RequiredLowN/ALow
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityNoneN/AHigh
Integrity ImpactNoneN/AHigh
Availability ImpactHighN/AHigh

Vector

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

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

Understanding the Weakness (CWE)

Other

Technical Impact: Varies by Context

When code does not follow the instructions for resource management, it can lead to unexpected behaviors and potentially exploitable states.

Frequently Asked Questions

Want to get errata notifications? Sign up here.