7.8

CVE-2023-52804

fs/jfs: Add validity check for db_maxag and db_agpref

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.
Daten sind bereitgestellt durch National Vulnerability Database (NVD)
LinuxLinux Kernel Version < 4.14.331
LinuxLinux Kernel Version >= 4.15 < 4.19.300
LinuxLinux Kernel Version >= 4.20 < 5.4.262
LinuxLinux Kernel Version >= 5.5 < 5.10.202
LinuxLinux Kernel Version >= 5.11 < 5.15.140
LinuxLinux Kernel Version >= 5.16 < 6.1.64
LinuxLinux Kernel Version >= 6.2 < 6.5.13
LinuxLinux Kernel Version >= 6.6 < 6.6.3
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.26% 0.168
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
nvd@nist.gov 7.8 1.8 5.9
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-129 Improper Validation of Array Index

The product uses untrusted input when calculating or using an array index, but the product does not validate or incorrectly validates the index to ensure the index references a valid position within the array.

https://git.kernel.org/stable/c/1f74d336990f37703a8eee77153463d65b67f70e
Patch
https://git.kernel.org/stable/c/2323de34a3ae61a9f9b544c18583f71cea86721f
Patch
https://git.kernel.org/stable/c/32bd8f1cbcf8b663e29dd1f908ba3a129541a11b
Patch
https://git.kernel.org/stable/c/5013f8269887642cca784adc8db9b5f0b771533f
Patch
https://git.kernel.org/stable/c/64933ab7b04881c6c18b21ff206c12278341c72e
Patch
https://git.kernel.org/stable/c/a0649e2dd4a3595b5595a29d0064d047c2fae2fb
Patch
https://git.kernel.org/stable/c/c6c8863fb3f57700ab583d875adda04caaf2278a
Patch
https://git.kernel.org/stable/c/ce15b0f1a431168f07b1cc6c9f71206a2db5c809
Patch
https://git.kernel.org/stable/c/dca403bb035a565bb98ecc1dda5d30f676feda40
Patch