CVE-2023-4385: Kernel: jfs: null pointer dereference in dbfree()

Published Jul 3, 2023
·
Updated

A NULL pointer dereference flaw was found in dbFree in fs/jfs/jfsdmap.c in journaling file system (JFS) in the Linux Kernel. In this flaw, a local attacker may crash the system due to a missing sanity check.

In our fault-injection testing, the variable "nblocks" in dbFree() can be zero when kmallocarray() fails in dtSearch(). In this case, the variable "mp" in dbFree() would be NULL and then it is dereferenced in "writemetapage(mp)".

References: https://github.com/torvalds/linux/commit/0d4837fdb796f99369cf7691d33de1b856bcaf1f

Other sources

A NULL pointer dereference flaw was found in dbFree in fs/jfs/jfsdmap.c in the journaling file system (JFS) in the Linux Kernel. This issue may allow a local attacker to crash the system due to a missing sanity check.

— Launchpad

Affected Software

3 affected componentsFixes available
redhat/kernel<5.19
5.19
Linux Linux kernel<=5.18.19
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/Kernel to a version that resolves this vulnerability.

    Fixed in 5.19
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1

Event History

Aug 16, 2023
CVE Published
via MITRE·04:49 PM
Data Sourced
via MITRE·04:49 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2023-4385?

CVE-2023-4385 is classified as a high-severity vulnerability due to its potential to crash the system.

2

How do I fix CVE-2023-4385?

To fix CVE-2023-4385, update the Linux kernel to version 5.19 or later.

3

What software is affected by CVE-2023-4385?

CVE-2023-4385 affects multiple versions of the Linux kernel, specifically versions up to 5.18.19 and certain specified versions in the 5.10 and 6.1 series.

4

Who can exploit CVE-2023-4385?

CVE-2023-4385 can be exploited by a local attacker who can trigger a NULL pointer dereference.

5

What does CVE-2023-4385 exploit in the Linux kernel?

CVE-2023-4385 exploits a NULL pointer dereference in the dbFree function of the journaling file system (JFS) in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203