# CVE-2023-52582: netfs: Only call folio\_start\_fscache() one time for each folio

> 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.30% (percentile 16, 2026-11-26)
- **Published:** 2024-03-02T21:59:48.490Z
- **Modified:** 2026-06-17T06:43:04.760Z

## Who should check

- Anyone running Linux \>= 3d3c95046742e4eebaa4b891b0b01cbbed94ebbd, \< df9950d37df113db59495fa09d060754366a2b7c; \>= 3d3c95046742e4eebaa4b891b0b01cbbed94ebbd, \< d9f5537479d4ec97ea92ff24e81a517d5772581a; \>= 3d3c95046742e4eebaa4b891b0b01cbbed94ebbd, \< df1c357f25d808e30b216188330e708e09e1a412
- Anyone running Linux 5.13

## Description

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

netfs: Only call folio\_start\_fscache() one time for each folio

If a network filesystem using netfs implements a clamp\_length()
function, it can set subrequest lengths smaller than a page size.

When we loop through the folios in netfs\_rreq\_unlock\_folios() to
set any folios to be written back, we need to make sure we only
call folio\_start\_fscache() once for each folio.

Otherwise, this simple testcase:

  mount -o fsc,rsize=1024,wsize=1024 127.0.0.1:/export /mnt/nfs
  dd if=/dev/zero of=/mnt/nfs/file.bin bs=4096 count=1
  1+0 records in
  1+0 records out
  4096 bytes (4.1 kB, 4.0 KiB) copied, 0.0126359 s, 324 kB/s
  echo 3 \> /proc/sys/vm/drop\_caches
  cat /mnt/nfs/file.bin \> /dev/null

will trigger an oops similar to the following:

  page dumped because: VM\_BUG\_ON\_FOLIO(folio\_test\_private\_2(folio))
  ------------\[ cut here \]------------
  kernel BUG at include/linux/netfs.h:44!
  ...
  CPU: 5 PID: 134 Comm: kworker/u16:5 Kdump: loaded Not tainted 6.4.0-rc5
  ...
  RIP: 0010:netfs\_rreq\_unlock\_folios+0x68e/0x730 \[netfs\]
  ...
  Call Trace:
    netfs\_rreq\_assess+0x497/0x660 \[netfs\]
    netfs\_subreq\_terminated+0x32b/0x610 \[netfs\]
    nfs\_netfs\_read\_completion+0x14e/0x1a0 \[nfs\]
    nfs\_read\_completion+0x2f9/0x330 \[nfs\]
    rpc\_free\_task+0x72/0xa0 \[sunrpc\]
    rpc\_async\_release+0x46/0x70 \[sunrpc\]
    process\_one\_work+0x3bd/0x710
    worker\_thread+0x89/0x610
    kthread+0x181/0x1c0
    ret\_from\_fork+0x29/0x50

## Affected and fixed versions

- Linux: \>= 3d3c95046742e4eebaa4b891b0b01cbbed94ebbd, \< df9950d37df113db59495fa09d060754366a2b7c; \>= 3d3c95046742e4eebaa4b891b0b01cbbed94ebbd, \< d9f5537479d4ec97ea92ff24e81a517d5772581a; \>= 3d3c95046742e4eebaa4b891b0b01cbbed94ebbd, \< df1c357f25d808e30b216188330e708e09e1a412 (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-52582.md
Affected: Linux >= 3d3c95046742e4eebaa4b891b0b01cbbed94ebbd, < df9950d37df113db59495fa09d060754366a2b7c; >= 3d3c95046742e4eebaa4b891b0b01cbbed94ebbd, < d9f5537479d4ec97ea92ff24e81a517d5772581a; >= 3d3c95046742e4eebaa4b891b0b01cbbed94ebbd, < df1c357f25d808e30b216188330e708e09e1a412; Linux 5.13
Fixed in: no fixed version listed yet

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-2023-52582 being exploited?

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

### How serious is CVE-2023-52582?

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

### Which versions are affected by CVE-2023-52582?

Linux \>= 3d3c95046742e4eebaa4b891b0b01cbbed94ebbd, \< df9950d37df113db59495fa09d060754366a2b7c; \>= 3d3c95046742e4eebaa4b891b0b01cbbed94ebbd, \< d9f5537479d4ec97ea92ff24e81a517d5772581a; \>= 3d3c95046742e4eebaa4b891b0b01cbbed94ebbd, \< df1c357f25d808e30b216188330e708e09e1a412; Linux 5.13.

### Is there a fix for CVE-2023-52582?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-52582?

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/df9950d37df113db59495fa09d060754366a2b7c>
- patch: <https://git.kernel.org/stable/c/d9f5537479d4ec97ea92ff24e81a517d5772581a>
- patch: <https://git.kernel.org/stable/c/df1c357f25d808e30b216188330e708e09e1a412>

## 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-2023-52582>

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