CVE-2023-53222

jfs: jfs_dmap: Validate db_l2nbperpage while mounting

HIGH
7.1
CVSS Score
Published: September 15, 2025 at 02:21 PM UTC
Updated: August 5, 2026 at 10:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.14.3222.6.12 ≤ v < 4.14.3222.6.12 ≤ v < 4.19.2912.6.12 ≤ v < 5.10.1882.6.12 ≤ v < 5.15.1212.6.12 ≤ v < 5.4.2512.6.12 ≤ v < 6.1.402.6.12 ≤ v < 6.4.52.6.12 ≤ v < 6.54.15 ≤ v < 4.19.2914.20 ≤ v < 5.4.2515.11 ≤ v < 5.15.1215.16 ≤ v < 6.1.405.5 ≤ v < 5.10.1886.2 ≤ v < 6.4.51da177e4c3f41524e886b7f1b8a0c1fc7321cac22.6.12
Vendor states this is fixed in 11509910c599cbd04585ec35a6d5e1a0053d84c1 (fixed)
Vendor states this is fixed in 2a03c4e683d33d17b667418eb717b13dda1fac6b (fixed)
Vendor states this is fixed in 47b7eaae08e8b2f25bdf37bc14d21be090bcb20f (fixed)
Vendor states this is fixed in 8c1efe3f74a7864461b0dff281c5562154b4aa8e (fixed)
Vendor states this is fixed in a4855aeb13e4ad1f23e16753b68212e180f7d848 (fixed)
Vendor states this is fixed in c7feb54b113802d2aba98708769d3c33fb017254 (fixed)
Vendor states this is fixed in de984faecddb900fa850af4df574a25b32bb93f5 (fixed)
Vendor states this is fixed in ef5c205b6e6f8d1f18ef0b4a9832b1b5fa85f7f2 (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 4.14.322 (unaffected)
Vendor states this is fixed in 4.19.291 (unaffected)
Vendor states this is fixed in 5.10.188 (unaffected)
Vendor states this is fixed in 5.15.121 (unaffected)
Vendor states this is fixed in 5.4.251 (unaffected)
Vendor states this is fixed in 6.1.40 (unaffected)
Vendor states this is fixed in 6.4.5 (unaffected)
Vendor states this is fixed in 6.5 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/11509910c599cbd04585ec35a6d5e1a0053d84c1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2a03c4e683d33d17b667418eb717b13dda1fac6b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/47b7eaae08e8b2f25bdf37bc14d21be090bcb20f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8c1efe3f74a7864461b0dff281c5562154b4aa8e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a4855aeb13e4ad1f23e16753b68212e180f7d848
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c7feb54b113802d2aba98708769d3c33fb017254
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/de984faecddb900fa850af4df574a25b32bb93f5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ef5c205b6e6f8d1f18ef0b4a9832b1b5fa85f7f2

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.1HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card