# CVE-2025-38282: kernfs: Relax constraint in draining guard

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.27% (percentile 12, 2026-11-26)
- **Published:** 2025-07-10T07:42:00.395Z
- **Modified:** 2026-11-05T21:18:24.423Z

## Who should check

- Anyone running Linux \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 2d6a67c2b3b87808a347dc1047b520a9dd177a4f; \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 6c81f1c7812c61f187bed1b938f1d2e391d503ab; \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 6bfb154f95d5f0ab7ed056f23aba8c1a94cb3927; \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 72275c888f8962b406ee9c6885c79bf68cca5a63; \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 071d8e4c2a3b0999a9b822e2eb8854784a350f8a
- Anyone running Linux 6.1

## Description

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

kernfs: Relax constraint in draining guard

The active reference lifecycle provides the break/unbreak mechanism but
the active reference is not truly active after unbreak -- callers don't
use it afterwards but it's important for proper pairing of kn-\>active
counting. Assuming this mechanism is in place, the WARN check in
kernfs\_should\_drain\_open\_files() is too sensitive -- it may transiently
catch those (rightful) callers between
kernfs\_unbreak\_active\_protection() and kernfs\_put\_active() as found out by Chen
Ridong:

	kernfs\_remove\_by\_name\_ns	kernfs\_get\_active // active=1
	\_\_kernfs\_remove					  // active=0x80000002
	kernfs\_drain			...
	wait\_event
	//waiting (active == 0x80000001)
					kernfs\_break\_active\_protection
					// active = 0x80000001
	// continue
					kernfs\_unbreak\_active\_protection
					// active = 0x80000002
	...
	kernfs\_should\_drain\_open\_files
	// warning occurs
					kernfs\_put\_active

To avoid the false positives (mind panic\_on\_warn) remove the check altogether.
(This is meant as quick fix, I think active reference break/unbreak may be
simplified with larger rework.)

## Affected and fixed versions

- Linux: \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 2d6a67c2b3b87808a347dc1047b520a9dd177a4f; \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 6c81f1c7812c61f187bed1b938f1d2e391d503ab; \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 6bfb154f95d5f0ab7ed056f23aba8c1a94cb3927; \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 72275c888f8962b406ee9c6885c79bf68cca5a63; \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 071d8e4c2a3b0999a9b822e2eb8854784a350f8a (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 071d8e4c2a3b0999a9b822e2eb8854784a350f8a 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-38282. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38282.md
Affected: Linux >= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, < 2d6a67c2b3b87808a347dc1047b520a9dd177a4f; >= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, < 6c81f1c7812c61f187bed1b938f1d2e391d503ab; >= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, < 6bfb154f95d5f0ab7ed056f23aba8c1a94cb3927; >= bdb2fd7fc56e197a63c0b0e…
Fixed in: Linux 2d6a67c2b3b87808a347dc1047b520a9dd177a4f, Linux 6c81f1c7812c61f187bed1b938f1d2e391d503ab, Linux 6bfb154f95d5f0ab7ed056f23aba8c1a94cb3927, Linux 72275c888f8962b406ee9c6885c79bf68cca5a63, Linux 071d8e4c2a3b0999a9b822e2eb8854784a350f8a

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-38282 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 2d6a67c2b3b87808a347dc1047b520a9dd177a4f; \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 6c81f1c7812c61f187bed1b938f1d2e391d503ab; \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 6bfb154f95d5f0ab7ed056f23aba8c1a94cb3927; \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 72275c888f8962b406ee9c6885c79bf68cca5a63; \>= bdb2fd7fc56e197a63c0b0e7e07d25d5e20e7c72, \< 071d8e4c2a3b0999a9b822e2eb8854784a350f8a; Linux 6.1.

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

Yes. Fixed in Linux 2d6a67c2b3b87808a347dc1047b520a9dd177a4f, Linux 6c81f1c7812c61f187bed1b938f1d2e391d503ab, Linux 6bfb154f95d5f0ab7ed056f23aba8c1a94cb3927, Linux 72275c888f8962b406ee9c6885c79bf68cca5a63, Linux 071d8e4c2a3b0999a9b822e2eb8854784a350f8a. Upgrade Linux to 071d8e4c2a3b0999a9b822e2eb8854784a350f8a or later.

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

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/2d6a67c2b3b87808a347dc1047b520a9dd177a4f>
- patch: <https://git.kernel.org/stable/c/6c81f1c7812c61f187bed1b938f1d2e391d503ab>
- patch: <https://git.kernel.org/stable/c/6bfb154f95d5f0ab7ed056f23aba8c1a94cb3927>
- patch: <https://git.kernel.org/stable/c/72275c888f8962b406ee9c6885c79bf68cca5a63>
- patch: <https://git.kernel.org/stable/c/071d8e4c2a3b0999a9b822e2eb8854784a350f8a>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.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-38282>

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