# CVE-2023-53845: nilfs2: fix infinite loop in nilfs\_mdt\_get\_block()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **Published:** 2025-12-09T01:30:08.016Z
- **Modified:** 2026-06-17T06:46:10.363Z

## Who should check

- Anyone running Linux \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< cfb0bb4fbd40c1f06da7e9f88c0a2d46155b90c2; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< d536f9976bb04e9c84cf80045a9355975e418f41; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< fe1cbbcb1a2532ee1654e1ff121be8906d83c6f0; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 8a89d36a07afe1ed4564df51fefa2bb556c85412; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 8d07d9119642ba43d21f8ba64d51d01931096b20; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 25457d07c8146e57d28906c663def033dc425af6; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 34c5f17222b50c79848bb03ec8811648813e6a45; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 5b29661669cb65b9750a3cf70ed3eaf947b92167; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< a6a491c048882e7e424d407d32cba0b52d9ef2bf
- Anyone running Linux 2.6.30

## Description

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

nilfs2: fix infinite loop in nilfs\_mdt\_get\_block()

If the disk image that nilfs2 mounts is corrupted and a virtual block
address obtained by block lookup for a metadata file is invalid,
nilfs\_bmap\_lookup\_at\_level() may return the same internal return code as
-ENOENT, meaning the block does not exist in the metadata file.

This duplication of return codes confuses nilfs\_mdt\_get\_block(), causing
it to read and create a metadata block indefinitely.

In particular, if this happens to the inode metadata file, ifile,
semaphore i\_rwsem can be left held, causing task hangs in lock\_mount.

Fix this issue by making nilfs\_bmap\_lookup\_at\_level() treat virtual block
address translation failures with -ENOENT as metadata corruption instead
of returning the error code.

## Affected and fixed versions

- Linux: \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< cfb0bb4fbd40c1f06da7e9f88c0a2d46155b90c2; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< d536f9976bb04e9c84cf80045a9355975e418f41; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< fe1cbbcb1a2532ee1654e1ff121be8906d83c6f0; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 8a89d36a07afe1ed4564df51fefa2bb556c85412; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 8d07d9119642ba43d21f8ba64d51d01931096b20; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 25457d07c8146e57d28906c663def033dc425af6; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 34c5f17222b50c79848bb03ec8811648813e6a45; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 5b29661669cb65b9750a3cf70ed3eaf947b92167; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< a6a491c048882e7e424d407d32cba0b52d9ef2bf (cvelist)
- Linux: 2.6.30 (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-53845. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53845.md
Affected: Linux >= bdb265eae08db578e7cf5739be16f389d495fc75, < cfb0bb4fbd40c1f06da7e9f88c0a2d46155b90c2; >= bdb265eae08db578e7cf5739be16f389d495fc75, < d536f9976bb04e9c84cf80045a9355975e418f41; >= bdb265eae08db578e7cf5739be16f389d495fc75, < fe1cbbcb1a2532ee1654e1ff121be8906d83c6f0; >= bdb265eae08db578e7cf573…
Fixed in: Linux 8a89d36a07afe1ed4564df51fefa2bb556c85412, Linux 8d07d9119642ba43d21f8ba64d51d01931096b20, Linux 25457d07c8146e57d28906c663def033dc425af6, Linux 34c5f17222b50c79848bb03ec8811648813e6a45, Linux 5b29661669cb65b9750a3cf70ed3eaf947b92167

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< cfb0bb4fbd40c1f06da7e9f88c0a2d46155b90c2; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< d536f9976bb04e9c84cf80045a9355975e418f41; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< fe1cbbcb1a2532ee1654e1ff121be8906d83c6f0; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 8a89d36a07afe1ed4564df51fefa2bb556c85412; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 8d07d9119642ba43d21f8ba64d51d01931096b20; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 25457d07c8146e57d28906c663def033dc425af6; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 34c5f17222b50c79848bb03ec8811648813e6a45; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< 5b29661669cb65b9750a3cf70ed3eaf947b92167; \>= bdb265eae08db578e7cf5739be16f389d495fc75, \< a6a491c048882e7e424d407d32cba0b52d9ef2bf; Linux 2.6.30.

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

Yes. Fixed in Linux 8a89d36a07afe1ed4564df51fefa2bb556c85412, Linux 8d07d9119642ba43d21f8ba64d51d01931096b20, Linux 25457d07c8146e57d28906c663def033dc425af6, Linux 34c5f17222b50c79848bb03ec8811648813e6a45, Linux 5b29661669cb65b9750a3cf70ed3eaf947b92167. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/cfb0bb4fbd40c1f06da7e9f88c0a2d46155b90c2>
- other: <https://git.kernel.org/stable/c/d536f9976bb04e9c84cf80045a9355975e418f41>
- other: <https://git.kernel.org/stable/c/fe1cbbcb1a2532ee1654e1ff121be8906d83c6f0>
- other: <https://git.kernel.org/stable/c/8a89d36a07afe1ed4564df51fefa2bb556c85412>
- other: <https://git.kernel.org/stable/c/8d07d9119642ba43d21f8ba64d51d01931096b20>
- other: <https://git.kernel.org/stable/c/25457d07c8146e57d28906c663def033dc425af6>
- other: <https://git.kernel.org/stable/c/34c5f17222b50c79848bb03ec8811648813e6a45>
- other: <https://git.kernel.org/stable/c/5b29661669cb65b9750a3cf70ed3eaf947b92167>
- other: <https://git.kernel.org/stable/c/a6a491c048882e7e424d407d32cba0b52d9ef2bf>

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

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