# CVE-2025-21830: landlock: Handle weird files

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.3
- **CVSS:** 7.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: None; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-03-06T16:08:09.894Z
- **Modified:** 2026-10-15T22:18:09.603Z

## Who should check

- Anyone running Linux \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< a1fccf6b72b56343dd4f2d96b008147f9951eebd; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 7d6121228959ddf44a4b9b6a177384ac7854e2f9; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 39bb3d56f1c351e76bb18895d0e73796e653d5c1; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 2569e65d2eb6ac1afe6cb6dfae476afee8b6771a; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 0fde195a373ab1267e60baa9e1a703a97e7464cd; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 49440290a0935f428a1e43a5ac8dc275a647ff80
- Anyone running Linux 5.13

## Description

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

landlock: Handle weird files

A corrupted filesystem (e.g. bcachefs) might return weird files.
Instead of throwing a warning and allowing access to such file, treat
them as regular files.

## Affected and fixed versions

- Linux: \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< a1fccf6b72b56343dd4f2d96b008147f9951eebd; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 7d6121228959ddf44a4b9b6a177384ac7854e2f9; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 39bb3d56f1c351e76bb18895d0e73796e653d5c1; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 2569e65d2eb6ac1afe6cb6dfae476afee8b6771a; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 0fde195a373ab1267e60baa9e1a703a97e7464cd; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 49440290a0935f428a1e43a5ac8dc275a647ff80 (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- Upgrade Linux to 49440290a0935f428a1e43a5ac8dc275a647ff80 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21830. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21830.md
Affected: Linux >= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, < a1fccf6b72b56343dd4f2d96b008147f9951eebd; >= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, < 7d6121228959ddf44a4b9b6a177384ac7854e2f9; >= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, < 39bb3d56f1c351e76bb18895d0e73796e653d5c1; >= cb2c7d1a1776057c9a1f48e…
Fixed in: Linux 7d6121228959ddf44a4b9b6a177384ac7854e2f9, Linux 39bb3d56f1c351e76bb18895d0e73796e653d5c1, Linux 2569e65d2eb6ac1afe6cb6dfae476afee8b6771a, Linux 0fde195a373ab1267e60baa9e1a703a97e7464cd, Linux 49440290a0935f428a1e43a5ac8dc275a647ff80

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21830 being exploited?

There is no confirmed exploitation: CVE-2025-21830 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21830?

High: CVSS 7.3 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21830?

Linux \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< a1fccf6b72b56343dd4f2d96b008147f9951eebd; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 7d6121228959ddf44a4b9b6a177384ac7854e2f9; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 39bb3d56f1c351e76bb18895d0e73796e653d5c1; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 2569e65d2eb6ac1afe6cb6dfae476afee8b6771a; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 0fde195a373ab1267e60baa9e1a703a97e7464cd; \>= cb2c7d1a1776057c9a1f48ed1250d85e94d4850d, \< 49440290a0935f428a1e43a5ac8dc275a647ff80; Linux 5.13.

### Is there a fix for CVE-2025-21830?

Yes. Fixed in Linux 7d6121228959ddf44a4b9b6a177384ac7854e2f9, Linux 39bb3d56f1c351e76bb18895d0e73796e653d5c1, Linux 2569e65d2eb6ac1afe6cb6dfae476afee8b6771a, Linux 0fde195a373ab1267e60baa9e1a703a97e7464cd, Linux 49440290a0935f428a1e43a5ac8dc275a647ff80. Upgrade Linux to 49440290a0935f428a1e43a5ac8dc275a647ff80 or later.

### How do I check if I'm affected by CVE-2025-21830?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/a1fccf6b72b56343dd4f2d96b008147f9951eebd>
- patch: <https://git.kernel.org/stable/c/7d6121228959ddf44a4b9b6a177384ac7854e2f9>
- patch: <https://git.kernel.org/stable/c/39bb3d56f1c351e76bb18895d0e73796e653d5c1>
- patch: <https://git.kernel.org/stable/c/2569e65d2eb6ac1afe6cb6dfae476afee8b6771a>
- patch: <https://git.kernel.org/stable/c/0fde195a373ab1267e60baa9e1a703a97e7464cd>
- patch: <https://git.kernel.org/stable/c/49440290a0935f428a1e43a5ac8dc275a647ff80>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21830>

HTML: <https://flawdb.com/CVE-2025-21830> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21830>
