Menu

Star on GitHub · 3.2k

CVE-2024-40952

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix NULL pointer dereference in ocfs2_journal_dirty() bdev->bd_super has been removed and commit 8887b94d9322 change the…

Published Jul 12, 2024CWE-476EPSS 0.24%

Overview

CVE-2024-40952 is a medium-severity vulnerability. It was published on July 12, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: fix NULL pointer dereference in ocfs2_journal_dirty()

bdev->bd_super has been removed and commit 8887b94d9322 change the usage

from bdev->bd_super to b_assoc_map->host->i_sb. This introduces the

following NULL pointer dereference in ocfs2_journal_dirty() since

b_assoc_map is still not initialized. This can be easily reproduced by

running xfstests generic/186, which simulate no more credits.

[ 134.351592] BUG: kernel NULL pointer dereference, address: 0000000000000000

...

[ 134.355341] RIP: 0010:ocfs2_journal_dirty+0x14f/0x160 [ocfs2]

...

[ 134.365071] Call Trace:

[ 134.365312] <TASK>

[ 134.365524] ? __die_body+0x1e/0x60

[ 134.365868] ? page_fault_oops+0x13d/0x4f0

[ 134.366265] ? __pfx_bit_wait_io+0x10/0x10

[ 134.366659] ? schedule+0x27/0xb0

[ 134.366981] ? exc_page_fault+0x6a/0x140

[ 134.367356] ? asm_exc_page_fault+0x26/0x30

[ 134.367762] ? ocfs2_journal_dirty+0x14f/0x160 [ocfs2]

[ 134.

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-40952?

CVE-2024-40952 is a medium-severity vulnerability. It was published on July 12, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-40952?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-40952?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-40952?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-40952 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2024

View all