# CVE-2024-49875: nfsd: map the EBADMSG to nfserr\_io to avoid warning

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; 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:** Remote, no login needed
- **EPSS:** 0.63% (percentile 44, 2026-11-26)
- **CWE:** CWE-354
- **Published:** 2024-10-21T18:01:15.434Z
- **Modified:** 2026-08-05T11:40:18.193Z

## Who should check

- Anyone running Linux \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< 0ea4333c679f333e23956de743ad17387819d3f2; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< 825789ca94602543101045ad3aad19b2b60c6b2a; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< 6fe058502f8864649c3d614b06b2235223798f48; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< f7d8ee9db94372b8235f5f22bb24381891594c42; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< c76005adfa93d1a027433331252422078750321f; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< e9cfecca22a36b927a440abc6307efb9e138fed5; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< 340e61e44c1d2a15c42ec72ade9195ad525fd048
- Anyone running Linux 4.4

## Description

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

nfsd: map the EBADMSG to nfserr\_io to avoid warning

Ext4 will throw -EBADMSG through ext4\_readdir when a checksum error
occurs, resulting in the following WARNING.

Fix it by mapping EBADMSG to nfserr\_io.

nfsd\_buffered\_readdir
 iterate\_dir // -EBADMSG -74
  ext4\_readdir // .iterate\_shared
   ext4\_dx\_readdir
    ext4\_htree\_fill\_tree
     htree\_dirblock\_to\_tree
      ext4\_read\_dirblock
       \_\_ext4\_read\_dirblock
        ext4\_dirblock\_csum\_verify
         warn\_no\_space\_for\_csum
          \_\_warn\_no\_space\_for\_csum
        return ERR\_PTR(-EFSBADCRC) // -EBADMSG -74
 nfserrno // WARNING

\[  161.115610\] ------------\[ cut here \]------------
\[  161.116465\] nfsd: non-standard errno: -74
\[  161.117315\] WARNING: CPU: 1 PID: 780 at fs/nfsd/nfsproc.c:878 nfserrno+0x9d/0xd0
\[  161.118596\] Modules linked in:
\[  161.119243\] CPU: 1 PID: 780 Comm: nfsd Not tainted 5.10.0-00014-g79679361fd5d \#138
\[  161.120684\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qe
mu.org 04/01/2014
\[  161.123601\] RIP: 0010:nfserrno+0x9d/0xd0
\[  161.124676\] Code: 0f 87 da 30 dd 00 83 e3 01 b8 00 00 00 05 75 d7 44 89 ee 48 c7 c7 c0 57 24 98 89 44 24 04 c6
 05 ce 2b 61 03 01 e8 99 20 d8 00 \<0f\> 0b 8b 44 24 04 eb b5 4c 89 e6 48 c7 c7 a0 6d a4 99 e8 cc 15 33
\[  161.127797\] RSP: 0018:ffffc90000e2f9c0 EFLAGS: 00010286
\[  161.128794\] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
\[  161.130089\] RDX: 1ffff1103ee16f6d RSI: 0000000000000008 RDI: fffff520001c5f2a
\[  161.131379\] RBP: 0000000000000022 R08: 0000000000000001 R09: ffff8881f70c1827
\[  161.132664\] R10: ffffed103ee18304 R11: 0000000000000001 R12: 0000000000000021
\[  161.133949\] R13: 00000000ffffffb6 R14: ffff8881317c0000 R15: ffffc90000e2fbd8
\[  161.135244\] FS:  0000000000000000(0000) GS:ffff8881f7080000(0000) knlGS:0000000000000000
\[  161.136695\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  161.137761\] CR2: 00007fcaad70b348 CR3: 0000000144256006 CR4: 0000000000770ee0
\[  161.139041\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[  161.140291\] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
\[  161.141519\] PKRU: 55555554
\[  161.142076\] Call Trace:
\[  161.142575\]  ? \_\_warn+0x9b/0x140
\[  161.143229\]  ? nfserrno+0x9d/0xd0
\[  161.143872\]  ? report\_bug+0x125/0x150
\[  161.144595\]  ? handle\_bug+0x41/0x90
\[  161.145284\]  ? exc\_invalid\_op+0x14/0x70
\[  161.146009\]  ? asm\_exc\_invalid\_op+0x12/0x20
\[  161.146816\]  ? nfserrno+0x9d/0xd0
\[  161.147487\]  nfsd\_buffered\_readdir+0x28b/0x2b0
\[  161.148333\]  ? nfsd4\_encode\_dirent\_fattr+0x380/0x380
\[  161.149258\]  ? nfsd\_buffered\_filldir+0xf0/0xf0
\[  161.150093\]  ? wait\_for\_concurrent\_writes+0x170/0x170
\[  161.151004\]  ? generic\_file\_llseek\_size+0x48/0x160
\[  161.151895\]  nfsd\_readdir+0x132/0x190
\[  161.152606\]  ? nfsd4\_encode\_dirent\_fattr+0x380/0x380
\[  161.153516\]  ? nfsd\_unlink+0x380/0x380
\[  161.154256\]  ? override\_creds+0x45/0x60
\[  161.155006\]  nfsd4\_encode\_readdir+0x21a/0x3d0
\[  161.155850\]  ? nfsd4\_encode\_readlink+0x210/0x210
\[  161.156731\]  ? write\_bytes\_to\_xdr\_buf+0x97/0xe0
\[  161.157598\]  ? \_\_write\_bytes\_to\_xdr\_buf+0xd0/0xd0
\[  161.158494\]  ? lock\_downgrade+0x90/0x90
\[  161.159232\]  ? nfs4svc\_decode\_voidarg+0x10/0x10
\[  161.160092\]  nfsd4\_encode\_operation+0x15a/0x440
\[  161.160959\]  nfsd4\_proc\_compound+0x718/0xe90
\[  161.161818\]  nfsd\_dispatch+0x18e/0x2c0
\[  161.162586\]  svc\_process\_common+0x786/0xc50
\[  161.163403\]  ? nfsd\_svc+0x380/0x380
\[  161.164137\]  ? svc\_printk+0x160/0x160
\[  161.164846\]  ? svc\_xprt\_do\_enqueue.part.0+0x365/0x380
\[  161.165808\]  ? nfsd\_svc+0x380/0x380
\[  161.166523\]  ? rcu\_is\_watching+0x23/0x40
\[  161.167309\]  svc\_process+0x1a5/0x200
\[  161.168019\]  nfsd+0x1f5/0x380
\[  161.168663\]  ? nfsd\_shutdown\_threads+0x260/0x260
\[  161.169554\]  kthread+0x1c4/0x210
\[  161.170224\]  ? kthread\_insert\_work\_sanity\_check+0x80/0x80
\[  161.171246\]  ret\_from\_fork+0x1f/0x30

## Affected and fixed versions

- Linux: \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< 0ea4333c679f333e23956de743ad17387819d3f2; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< 825789ca94602543101045ad3aad19b2b60c6b2a; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< 6fe058502f8864649c3d614b06b2235223798f48; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< f7d8ee9db94372b8235f5f22bb24381891594c42; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< c76005adfa93d1a027433331252422078750321f; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< e9cfecca22a36b927a440abc6307efb9e138fed5; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< 340e61e44c1d2a15c42ec72ade9195ad525fd048 (cvelist)
- Linux: 4.4 (cvelist)

## Mitigation

- Upgrade Linux to 340e61e44c1d2a15c42ec72ade9195ad525fd048 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-49875.md
Affected: Linux >= 6a797d2737838906f2ea0a31686e87c3151e21ca, < 0ea4333c679f333e23956de743ad17387819d3f2; >= 6a797d2737838906f2ea0a31686e87c3151e21ca, < 825789ca94602543101045ad3aad19b2b60c6b2a; >= 6a797d2737838906f2ea0a31686e87c3151e21ca, < 6fe058502f8864649c3d614b06b2235223798f48; >= 6a797d2737838906f2ea0a3…
Fixed in: Linux 0ea4333c679f333e23956de743ad17387819d3f2, Linux 825789ca94602543101045ad3aad19b2b60c6b2a, Linux 6fe058502f8864649c3d614b06b2235223798f48, Linux 340e61e44c1d2a15c42ec72ade9195ad525fd048

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-2024-49875 being exploited?

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

### How serious is CVE-2024-49875?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-49875?

Linux \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< 0ea4333c679f333e23956de743ad17387819d3f2; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< 825789ca94602543101045ad3aad19b2b60c6b2a; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< 6fe058502f8864649c3d614b06b2235223798f48; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< f7d8ee9db94372b8235f5f22bb24381891594c42; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< c76005adfa93d1a027433331252422078750321f; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< e9cfecca22a36b927a440abc6307efb9e138fed5; \>= 6a797d2737838906f2ea0a31686e87c3151e21ca, \< 340e61e44c1d2a15c42ec72ade9195ad525fd048; Linux 4.4.

### Is there a fix for CVE-2024-49875?

Yes. Fixed in Linux 0ea4333c679f333e23956de743ad17387819d3f2, Linux 825789ca94602543101045ad3aad19b2b60c6b2a, Linux 6fe058502f8864649c3d614b06b2235223798f48, Linux 340e61e44c1d2a15c42ec72ade9195ad525fd048. Upgrade Linux to 340e61e44c1d2a15c42ec72ade9195ad525fd048 or later.

### How do I check if I'm affected by CVE-2024-49875?

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/0ea4333c679f333e23956de743ad17387819d3f2>
- patch: <https://git.kernel.org/stable/c/825789ca94602543101045ad3aad19b2b60c6b2a>
- patch: <https://git.kernel.org/stable/c/6fe058502f8864649c3d614b06b2235223798f48>
- patch: <https://git.kernel.org/stable/c/f7d8ee9db94372b8235f5f22bb24381891594c42>
- patch: <https://git.kernel.org/stable/c/c76005adfa93d1a027433331252422078750321f>
- patch: <https://git.kernel.org/stable/c/e9cfecca22a36b927a440abc6307efb9e138fed5>
- patch: <https://git.kernel.org/stable/c/340e61e44c1d2a15c42ec72ade9195ad525fd048>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.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-2024-49875>

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