CVE-2022-4842: Null Pointer Dereference

Published Aug 15, 2022
·
Updated

A flaw NULL Pointer Dereference in the Linux kernel NTFS3 driver function attrpunchhole() was found. A local user could use this flaw to crash the system.

Other sources

A NULL pointer dereference flaw was found in the Linux kernel’s NTFS3 driver. This flaw allows a local user to crash the system.

In Linux kernel v5.15 and up there is a NULL Pointer Dereference vulnerability in the NTFS3 driver in the function attrpunchhole() in fs/ntfs3/attrib.c that could be triggered by any user.

The NULL dereference is triggered every time a user tries to punch a hole in a sparse or compressed file. The vulnerability is indeed exploitable and reproducible.

Environment:

1. An environment with NTFS3 image mounted. 2. NTFS3 image contains a sparse file or a compressed file.

Reproducing:

1. use fallocate with the option of PUNCHHOLE (i.e. fallocate -p -o 0 -l 5 mntpoint/topunch). 2. NULL pointer dereference should be triggered.

To summarize, a NULL pointer dereference vulnerability is in the NTFS3 driver, and can be used to create a DoS attack on a Linux machine.

Reference: https://lore.kernel.org/ntfs3/784f82c4-de71-b8c3-afd6-468869a369af@paragon-software.com/T/#t

— Red Hat

Affected Software

3 affected componentsFixes available
redhat/Linux kernel<6.2
6.2
Linux Linux kernel=6.2-rc1
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/Linux kernel to a version that resolves this vulnerability.

    Fixed in 6.2
  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 15, 2022
CVE Published
09:00 AM
Data Sourced
09:00 AM
RemedyDescriptionSeverityWeakness
Jan 12, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Jan 12, 2024
Data Sourced
via Launchpad·12:13 AM
Description
Dec 1, 2024
Data Sourced
via Ubuntu·03:59 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-4842?

CVE-2022-4842 is considered a critical vulnerability as it allows a local user to crash the system due to a NULL pointer dereference.

2

How do I fix CVE-2022-4842?

To mitigate CVE-2022-4842, it is recommended to update the Linux kernel to versions 6.2, 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.11-1, or 6.12.12-1.

3

Who is affected by CVE-2022-4842?

CVE-2022-4842 affects local users on systems running the Linux kernel versions prior to 6.2 and certain versions of the Debian and Red Hat Linux distributions.

4

What component of the Linux kernel is impacted by CVE-2022-4842?

CVE-2022-4842 specifically impacts the NTFS3 driver in the Linux kernel.

5

Can CVE-2022-4842 be exploited remotely?

CVE-2022-4842 cannot be exploited remotely, as it requires local user access to the affected system.

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