# CVE-2023-53222: jfs: jfs\_dmap: Validate db\_l2nbperpage while mounting

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-09-15T14:21:50.970Z
- **Modified:** 2026-08-05T09:13:10.735Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8c1efe3f74a7864461b0dff281c5562154b4aa8e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ef5c205b6e6f8d1f18ef0b4a9832b1b5fa85f7f2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a4855aeb13e4ad1f23e16753b68212e180f7d848; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 47b7eaae08e8b2f25bdf37bc14d21be090bcb20f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< de984faecddb900fa850af4df574a25b32bb93f5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c7feb54b113802d2aba98708769d3c33fb017254; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2a03c4e683d33d17b667418eb717b13dda1fac6b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 11509910c599cbd04585ec35a6d5e1a0053d84c1
- Anyone running Linux 2.6.12

## Description

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

jfs: jfs\_dmap: Validate db\_l2nbperpage while mounting

In jfs\_dmap.c at line 381, BLKTODMAP is used to get a logical block
number inside dbFree(). db\_l2nbperpage, which is the log2 number of
blocks per page, is passed as an argument to BLKTODMAP which uses it
for shifting.

Syzbot reported a shift out-of-bounds crash because db\_l2nbperpage is
too big. This happens because the large value is set without any
validation in dbMount() at line 181.

Thus, make sure that db\_l2nbperpage is correct while mounting.

Max number of blocks per page = Page size / Min block size
=\> log2(Max num\_block per page) = log2(Page size / Min block size)
				= log2(Page size) - log2(Min block size)

=\> Max db\_l2nbperpage = L2PSIZE - L2MINBLOCKSIZE

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8c1efe3f74a7864461b0dff281c5562154b4aa8e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ef5c205b6e6f8d1f18ef0b4a9832b1b5fa85f7f2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a4855aeb13e4ad1f23e16753b68212e180f7d848; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 47b7eaae08e8b2f25bdf37bc14d21be090bcb20f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< de984faecddb900fa850af4df574a25b32bb93f5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c7feb54b113802d2aba98708769d3c33fb017254; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2a03c4e683d33d17b667418eb717b13dda1fac6b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 11509910c599cbd04585ec35a6d5e1a0053d84c1 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 11509910c599cbd04585ec35a6d5e1a0053d84c1 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53222.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8c1efe3f74a7864461b0dff281c5562154b4aa8e; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ef5c205b6e6f8d1f18ef0b4a9832b1b5fa85f7f2; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a4855aeb13e4ad1f23e16753b68212e180f7d848; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 8c1efe3f74a7864461b0dff281c5562154b4aa8e, Linux 47b7eaae08e8b2f25bdf37bc14d21be090bcb20f, Linux 2a03c4e683d33d17b667418eb717b13dda1fac6b, Linux 11509910c599cbd04585ec35a6d5e1a0053d84c1

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

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

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

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

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

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8c1efe3f74a7864461b0dff281c5562154b4aa8e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ef5c205b6e6f8d1f18ef0b4a9832b1b5fa85f7f2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a4855aeb13e4ad1f23e16753b68212e180f7d848; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 47b7eaae08e8b2f25bdf37bc14d21be090bcb20f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< de984faecddb900fa850af4df574a25b32bb93f5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c7feb54b113802d2aba98708769d3c33fb017254; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2a03c4e683d33d17b667418eb717b13dda1fac6b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 11509910c599cbd04585ec35a6d5e1a0053d84c1; Linux 2.6.12.

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

Yes. Fixed in Linux 8c1efe3f74a7864461b0dff281c5562154b4aa8e, Linux 47b7eaae08e8b2f25bdf37bc14d21be090bcb20f, Linux 2a03c4e683d33d17b667418eb717b13dda1fac6b, Linux 11509910c599cbd04585ec35a6d5e1a0053d84c1. Upgrade Linux to 11509910c599cbd04585ec35a6d5e1a0053d84c1 or later.

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

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/8c1efe3f74a7864461b0dff281c5562154b4aa8e>
- patch: <https://git.kernel.org/stable/c/ef5c205b6e6f8d1f18ef0b4a9832b1b5fa85f7f2>
- patch: <https://git.kernel.org/stable/c/a4855aeb13e4ad1f23e16753b68212e180f7d848>
- patch: <https://git.kernel.org/stable/c/47b7eaae08e8b2f25bdf37bc14d21be090bcb20f>
- patch: <https://git.kernel.org/stable/c/de984faecddb900fa850af4df574a25b32bb93f5>
- patch: <https://git.kernel.org/stable/c/c7feb54b113802d2aba98708769d3c33fb017254>
- patch: <https://git.kernel.org/stable/c/2a03c4e683d33d17b667418eb717b13dda1fac6b>
- patch: <https://git.kernel.org/stable/c/11509910c599cbd04585ec35a6d5e1a0053d84c1>

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

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