CVE-2023-53222
Last modified
CVE-2023-53222 is a high-severity vulnerability rated 7.1/10 on the CVSS scale. 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. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
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
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | < 4.14.322 |
| Linux | Linux Kernel | >= 4.15, < 4.19.291 |
| Linux | Linux Kernel | >= 4.20, < 5.4.251 |
| Linux | Linux Kernel | >= 5.5, < 5.10.188 |
| Linux | Linux Kernel | >= 5.11, < 5.15.121 |
| Linux | Linux Kernel | >= 5.16, < 6.1.40 |
| Linux | Linux Kernel | >= 6.2, < 6.4.5 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-53222?
How severe is CVE-2023-53222?
How do I fix CVE-2023-53222?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-53217In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-53218In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-53219In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2023-5322** UNSUPPORTED WHEN ASSIGNED ** A vulnerability was found in…8.8
- CVE-2023-53220In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53221In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53223In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53224In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53225In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53226In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2023-53227Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2023-53228In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2023-53222?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
