# CVE-2025-38492: netfs: Fix race between cache write completion and ALL\_QUEUED being set

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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.15% (percentile 2, 2026-11-28)
- **CWE:** CWE-362
- **Published:** 2025-07-28T11:22:01.017Z
- **Modified:** 2026-06-17T09:16:58.537Z

## Who should check

- Anyone running Linux \>= e2d46f2ec332533816417b60933954173f602121, \< 110188a13c4853bd4c342e600ced4dfd26c3feb5; \>= e2d46f2ec332533816417b60933954173f602121, \< 89635eae076cd8eaa5cb752f66538c9dc6c9fdc3
- Anyone running Linux 6.14

## Description

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

netfs: Fix race between cache write completion and ALL\_QUEUED being set

When netfslib is issuing subrequests, the subrequests start processing
immediately and may complete before we reach the end of the issuing
function.  At the end of the issuing function we set NETFS\_RREQ\_ALL\_QUEUED
to indicate to the collector that we aren't going to issue any more subreqs
and that it can do the final notifications and cleanup.

Now, this isn't a problem if the request is synchronous
(NETFS\_RREQ\_OFFLOAD\_COLLECTION is unset) as the result collection will be
done in-thread and we're guaranteed an opportunity to run the collector.

However, if the request is asynchronous, collection is primarily triggered
by the termination of subrequests queuing it on a workqueue.  Now, a race
can occur here if the app thread sets ALL\_QUEUED after the last subrequest
terminates.

This can happen most easily with the copy2cache code (as used by Ceph)
where, in the collection routine of a read request, an asynchronous write
request is spawned to copy data to the cache.  Folios are added to the
write request as they're unlocked, but there may be a delay before
ALL\_QUEUED is set as the write subrequests may complete before we get
there.

If all the write subreqs have finished by the ALL\_QUEUED point, no further
events happen and the collection never happens, leaving the request
hanging.

Fix this by queuing the collector after setting ALL\_QUEUED.  This is a bit
heavy-handed and it may be sufficient to do it only if there are no extant
subreqs.

Also add a tracepoint to cross-reference both requests in a copy-to-request
operation and add a trace to the netfs\_rreq tracepoint to indicate the
setting of ALL\_QUEUED.

## Affected and fixed versions

- Linux: \>= e2d46f2ec332533816417b60933954173f602121, \< 110188a13c4853bd4c342e600ced4dfd26c3feb5; \>= e2d46f2ec332533816417b60933954173f602121, \< 89635eae076cd8eaa5cb752f66538c9dc6c9fdc3 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-38492.md
Affected: Linux >= e2d46f2ec332533816417b60933954173f602121, < 110188a13c4853bd4c342e600ced4dfd26c3feb5; >= e2d46f2ec332533816417b60933954173f602121, < 89635eae076cd8eaa5cb752f66538c9dc6c9fdc3; Linux 6.14
Fixed in: Linux 110188a13c4853bd4c342e600ced4dfd26c3feb5, Linux 89635eae076cd8eaa5cb752f66538c9dc6c9fdc3

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

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

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

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= e2d46f2ec332533816417b60933954173f602121, \< 110188a13c4853bd4c342e600ced4dfd26c3feb5; \>= e2d46f2ec332533816417b60933954173f602121, \< 89635eae076cd8eaa5cb752f66538c9dc6c9fdc3; Linux 6.14.

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

Yes. Fixed in Linux 110188a13c4853bd4c342e600ced4dfd26c3feb5, Linux 89635eae076cd8eaa5cb752f66538c9dc6c9fdc3. Upgrade Linux to 89635eae076cd8eaa5cb752f66538c9dc6c9fdc3 or later.

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

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/110188a13c4853bd4c342e600ced4dfd26c3feb5>
- patch: <https://git.kernel.org/stable/c/89635eae076cd8eaa5cb752f66538c9dc6c9fdc3>

## 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-38492>

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