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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < a0649e2dd4a3595b5595a29d0064d047c2fae2fbaffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < ce15b0f1a431168f07b1cc6c9f71206a2db5c809affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 32bd8f1cbcf8b663e29dd1f908ba3a129541a11baffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < c6c8863fb3f57700ab583d875adda04caaf2278aaffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 1f74d336990f37703a8eee77153463d65b67f70eaffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 5013f8269887642cca784adc8db9b5f0b771533faffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < dca403bb035a565bb98ecc1dda5d30f676feda40affected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 2323de34a3ae61a9f9b544c18583f71cea86721faffected1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 64933ab7b04881c6c18b21ff206c12278341c72eaffected
Linux Linux
Default version status: affected
2.6.12affected0 to < 2.6.12unaffected4.14.331 to ≤ 4.14.*unaffected4.19.300 to ≤ 4.19.*unaffected5.4.262 to ≤ 5.4.*unaffected5.10.202 to ≤ 5.10.*unaffected5.15.140 to ≤ 5.15.*unaffected6.1.64 to ≤ 6.1.*unaffected6.5.13 to ≤ 6.5.*unaffected6.6.3 to ≤ 6.6.*unaffected6.7 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/a0649e2dd4a3595b5595a29d0064d047c2fae2fb ↗
- https://git.kernel.org/stable/c/ce15b0f1a431168f07b1cc6c9f71206a2db5c809 ↗
- https://git.kernel.org/stable/c/32bd8f1cbcf8b663e29dd1f908ba3a129541a11b ↗
- https://git.kernel.org/stable/c/c6c8863fb3f57700ab583d875adda04caaf2278a ↗
- https://git.kernel.org/stable/c/1f74d336990f37703a8eee77153463d65b67f70e ↗
- https://git.kernel.org/stable/c/5013f8269887642cca784adc8db9b5f0b771533f ↗
- https://git.kernel.org/stable/c/dca403bb035a565bb98ecc1dda5d30f676feda40 ↗
- https://git.kernel.org/stable/c/2323de34a3ae61a9f9b544c18583f71cea86721f ↗
- https://git.kernel.org/stable/c/64933ab7b04881c6c18b21ff206c12278341c72e ↗