# CVE-2023-52582: linux: In the Linux kernel, the following vulnerability has been resolved:  netfs: Only call folio_start_fscache() one time...

CVE-2023-52582 is fixed in 21 products on 1 platform, first by ALAS2023-2023-385, released October 12, 2023. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2023-52582
- Priority: Routine
- CVSS: 5.5 (medium)
- EPSS: 0.0023
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Oct 12, 2023

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | bpftool amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | bpftool-debuginfo amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | kernel amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | kernel-debuginfo amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | kernel-debuginfo-common-aarch64 amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | kernel-debuginfo-common-x86_64 amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | kernel-devel amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | kernel-headers amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | kernel-libbpf amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | kernel-libbpf-devel amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | kernel-libbpf-static amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | kernel-livepatch-6.1.56-82.125 amzn 2023 | 1.0-0.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | kernel-modules-extra amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | kernel-tools amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | kernel-tools-debuginfo amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | kernel-tools-devel amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | linux Debian 12.15 (bookworm) | 6.1.64-1 | [DEBIAN-CVE-2023-52582](https://patchblox.com/security/data/fix/linux/debian-cve-2023-52582.md) | Mar 2, 2024 |
| Linux | linux Debian 13.5 (trixie) | 6.5.6-1 | [DEBIAN-CVE-2023-52582](https://patchblox.com/security/data/fix/linux/debian-cve-2023-52582.md) | Mar 2, 2024 |
| Linux | linux Debian 14 | 6.5.6-1 | [DEBIAN-CVE-2023-52582](https://patchblox.com/security/data/fix/linux/debian-cve-2023-52582.md) | Mar 2, 2024 |
| Linux | perf amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | perf-debuginfo amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | python3-perf amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |
| Linux | python3-perf-debuginfo amzn 2023 | 6.1.56-82.125.amzn2023 | [ALAS2023-2023-385](https://patchblox.com/security/data/fix/linux/alas2023-2023-385.md) | Oct 12, 2023 |

---

Data as of 2026-11-09T07:25:28Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
