# CVE-2022-48635: fsdax: Fix infinite loop in dax\_iomap\_rw()

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

- **Severity:** MEDIUM 6.2
- **CVSS:** 6.2 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; 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.33% (percentile 18, 2026-11-26)
- **CWE:** CWE-835
- **Published:** 2024-04-28T12:59:24.359Z
- **Modified:** 2026-06-17T05:15:46.887Z

## Who should check

- Anyone running Linux \>= 8df4919cb921b28809d05feae3e98dc5d8b48146, \< 463f36137c40342fb03bba380c1bf703c40d89a6; \>= ca289e0b95afa973d204c77a4ad5c37e06145fbf, \< 929ef155e1da41c06f4d8ca86ae12b851a83a744; \>= ca289e0b95afa973d204c77a4ad5c37e06145fbf, \< 60644dffac87b1bb47bdb393aa29d5f2ffcf41a0; \>= ca289e0b95afa973d204c77a4ad5c37e06145fbf, \< 17d9c15c9b9e7fb285f7ac5367dfb5f00ff575e3
- Anyone running Linux 5.15

## Description

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

fsdax: Fix infinite loop in dax\_iomap\_rw()

I got an infinite loop and a WARNING report when executing a tail command
in virtiofs.

  WARNING: CPU: 10 PID: 964 at fs/iomap/iter.c:34 iomap\_iter+0x3a2/0x3d0
  Modules linked in:
  CPU: 10 PID: 964 Comm: tail Not tainted 5.19.0-rc7
  Call Trace:
  \<TASK\>
  dax\_iomap\_rw+0xea/0x620
  ? \_\_this\_cpu\_preempt\_check+0x13/0x20
  fuse\_dax\_read\_iter+0x47/0x80
  fuse\_file\_read\_iter+0xae/0xd0
  new\_sync\_read+0xfe/0x180
  ? 0xffffffff81000000
  vfs\_read+0x14d/0x1a0
  ksys\_read+0x6d/0xf0
  \_\_x64\_sys\_read+0x1a/0x20
  do\_syscall\_64+0x3b/0x90
  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

The tail command will call read() with a count of 0. In this case,
iomap\_iter() will report this WARNING, and always return 1 which casuing
the infinite loop in dax\_iomap\_rw().

Fixing by checking count whether is 0 in dax\_iomap\_rw().

## Affected and fixed versions

- Linux: \>= 8df4919cb921b28809d05feae3e98dc5d8b48146, \< 463f36137c40342fb03bba380c1bf703c40d89a6; \>= ca289e0b95afa973d204c77a4ad5c37e06145fbf, \< 929ef155e1da41c06f4d8ca86ae12b851a83a744; \>= ca289e0b95afa973d204c77a4ad5c37e06145fbf, \< 60644dffac87b1bb47bdb393aa29d5f2ffcf41a0; \>= ca289e0b95afa973d204c77a4ad5c37e06145fbf, \< 17d9c15c9b9e7fb285f7ac5367dfb5f00ff575e3 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 17d9c15c9b9e7fb285f7ac5367dfb5f00ff575e3 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-48635.md
Affected: Linux >= 8df4919cb921b28809d05feae3e98dc5d8b48146, < 463f36137c40342fb03bba380c1bf703c40d89a6; >= ca289e0b95afa973d204c77a4ad5c37e06145fbf, < 929ef155e1da41c06f4d8ca86ae12b851a83a744; >= ca289e0b95afa973d204c77a4ad5c37e06145fbf, < 60644dffac87b1bb47bdb393aa29d5f2ffcf41a0; >= ca289e0b95afa973d204c77…
Fixed in: Linux 463f36137c40342fb03bba380c1bf703c40d89a6, Linux 929ef155e1da41c06f4d8ca86ae12b851a83a744, Linux 60644dffac87b1bb47bdb393aa29d5f2ffcf41a0, Linux 17d9c15c9b9e7fb285f7ac5367dfb5f00ff575e3

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-2022-48635 being exploited?

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

### How serious is CVE-2022-48635?

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

### Which versions are affected by CVE-2022-48635?

Linux \>= 8df4919cb921b28809d05feae3e98dc5d8b48146, \< 463f36137c40342fb03bba380c1bf703c40d89a6; \>= ca289e0b95afa973d204c77a4ad5c37e06145fbf, \< 929ef155e1da41c06f4d8ca86ae12b851a83a744; \>= ca289e0b95afa973d204c77a4ad5c37e06145fbf, \< 60644dffac87b1bb47bdb393aa29d5f2ffcf41a0; \>= ca289e0b95afa973d204c77a4ad5c37e06145fbf, \< 17d9c15c9b9e7fb285f7ac5367dfb5f00ff575e3; Linux 5.15.

### Is there a fix for CVE-2022-48635?

Yes. Fixed in Linux 463f36137c40342fb03bba380c1bf703c40d89a6, Linux 929ef155e1da41c06f4d8ca86ae12b851a83a744, Linux 60644dffac87b1bb47bdb393aa29d5f2ffcf41a0, Linux 17d9c15c9b9e7fb285f7ac5367dfb5f00ff575e3. Upgrade Linux to 17d9c15c9b9e7fb285f7ac5367dfb5f00ff575e3 or later.

### How do I check if I'm affected by CVE-2022-48635?

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/929ef155e1da41c06f4d8ca86ae12b851a83a744>
- patch: <https://git.kernel.org/stable/c/60644dffac87b1bb47bdb393aa29d5f2ffcf41a0>
- patch: <https://git.kernel.org/stable/c/17d9c15c9b9e7fb285f7ac5367dfb5f00ff575e3>
- other: <https://git.kernel.org/stable/c/463f36137c40342fb03bba380c1bf703c40d89a6>

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

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