CVE-2023-52810

fs/jfs: Add check for negative db_l2nbperpage

HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.26 % · percentile 18 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: fs/jfs: Add check for negative db_l2nbperpage l2nbperpage is log2(number of blks per page), and the minimum legal value should be 0, not negative. In the case of l2nbperpage being negative, an error will occur when subsequently used as shift exponent. Syzbot reported this bug: UBSAN: shift-out-of-bounds in fs/jfs/jfs_dmap.c:799:12 shift exponent -16777216 is negative

Weaknesses (CWE)

  • CWE-1335 — Incorrect Bitwise Shift of Integer

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 8.4CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HCISA-ADP
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 8.4CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < cc61fcf7d1c99f148fe8ddfb5c6ed0bb75861f01 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 8f2964df6bfce9d92d81ca552010b8677af8d9dc ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < a81a56b4cbe3142cc99f6b98e8f9b3a631c768e1 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 524b4f203afcf87accfe387e846f33f916f0c907 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 5f148b16972e5f4592629b244d5109b15135f53f ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 0cb567e727339a192f9fd0db00781d73a91d15a6
Linux · Linuxaffected 2.6.12 ; unaffected 0 < 2.6.12 ; unaffected 4.14.331 ≤ 4.14.* ; unaffected 4.19.300 ≤ 4.19.* ; unaffected 5.4.262 ≤ 5.4.* ; unaffected 5.10.202 ≤ 5.10.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD