CVE-2023-52804

fs/jfs: Add validity check for db_maxag and db_agpref

HIGH
7.8
CVSS Score
Published: May 21, 2024 at 03:31 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.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: fs/jfs: Add validity check for db_maxag and db_agpref Both db_maxag and db_agpref are used as the index of the db_agfree array, but there is currently no validity check for db_maxag and db_agpref, which can lead to errors. The following is related bug reported by Syzbot: UBSAN: array-index-out-of-bounds in fs/jfs/jfs_dmap.c:639:20 index 7936 is out of range for type 'atomic_t[128]' Add checking that the values of db_maxag and db_agpref are valid indexes for the db_agfree array.

Affected

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

v < 4.14.3312.6.12 ≤ v < 4.14.3312.6.12 ≤ v < 4.19.3002.6.12 ≤ v < 5.10.2022.6.12 ≤ v < 5.15.1402.6.12 ≤ v < 5.4.2622.6.12 ≤ v < 6.1.642.6.12 ≤ v < 6.5.132.6.12 ≤ v < 6.6.32.6.12 ≤ v < 6.74.15 ≤ v < 4.19.3004.20 ≤ v < 5.4.2625.11 ≤ v < 5.15.1405.16 ≤ v < 6.1.645.5 ≤ v < 5.10.2026.2 ≤ v < 6.5.136.6 ≤ v < 6.6.31da177e4c3f41524e886b7f1b8a0c1fc7321cac22.6.12
Vendor states this is fixed in 1f74d336990f37703a8eee77153463d65b67f70e (fixed)
Vendor states this is fixed in 2323de34a3ae61a9f9b544c18583f71cea86721f (fixed)
Vendor states this is fixed in 32bd8f1cbcf8b663e29dd1f908ba3a129541a11b (fixed)
Vendor states this is fixed in 5013f8269887642cca784adc8db9b5f0b771533f (fixed)
Vendor states this is fixed in 64933ab7b04881c6c18b21ff206c12278341c72e (fixed)
Vendor states this is fixed in a0649e2dd4a3595b5595a29d0064d047c2fae2fb (fixed)
Vendor states this is fixed in c6c8863fb3f57700ab583d875adda04caaf2278a (fixed)
Vendor states this is fixed in ce15b0f1a431168f07b1cc6c9f71206a2db5c809 (fixed)
Vendor states this is fixed in dca403bb035a565bb98ecc1dda5d30f676feda40 (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 4.14.331 (unaffected)
Vendor states this is fixed in 4.19.300 (unaffected)
Vendor states this is fixed in 5.10.202 (unaffected)
Vendor states this is fixed in 5.15.140 (unaffected)
Vendor states this is fixed in 5.4.262 (unaffected)
Vendor states this is fixed in 6.1.64 (unaffected)
Vendor states this is fixed in 6.5.13 (unaffected)
Vendor states this is fixed in 6.6.3 (unaffected)
Vendor states this is fixed in 6.7 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1f74d336990f37703a8eee77153463d65b67f70e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2323de34a3ae61a9f9b544c18583f71cea86721f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/32bd8f1cbcf8b663e29dd1f908ba3a129541a11b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5013f8269887642cca784adc8db9b5f0b771533f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/64933ab7b04881c6c18b21ff206c12278341c72e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a0649e2dd4a3595b5595a29d0064d047c2fae2fb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c6c8863fb3f57700ab583d875adda04caaf2278a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ce15b0f1a431168f07b1cc6c9f71206a2db5c809

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

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

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-129

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