CVE-2024-40951: ocfs2: fix NULL pointer dereference in ocfs2_abort_trigger()

Published Jul 12, 2024
·
Updated

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

ocfs2: fix NULL pointer dereference in ocfs2aborttrigger()

bdev->bdsuper has been removed and commit 8887b94d9322 change the usage from bdev->bdsuper to bassocmap->host->isb. Since ocfs2 hasn't set bh->bassocmap, it will trigger NULL pointer dereference when calling into ocfs2aborttrigger().

Actually this was pointed out in history, see commit 74e364ad1b13. But I've made a mistake when reviewing commit 8887b94d9322 and then re-introduce this regression.

Since we cannot revive bdev in buffer head, so fix this issue by initializing all types of ocfs2 triggers when fill super, and then get the specific ocfs2 trigger from ocfs2cachinginfo when access journal.

[joseph.qi@linux.alibaba.com: v2]

Affected Software

9 affected componentsFixes available
Linux Linux kernel>=6.6<6.6.36
Linux Linux kernel>=6.7<6.9.7
Linux Linux kernel=6.10-rc1
Linux Linux kernel=6.10-rc2
Linux Linux kernel=6.10-rc3
Linux Linux kernel=6.10-rc4
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
Microsoft azl3 kernel 6.6.35.1-5
Microsoft azl3 kernel 6.6.43.1-7

Event History

Jul 12, 2024
CVE Published
via MITRE·12:31 PM
Data Sourced
via MITRE·12:31 PM
Description
Aug 16, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
May 1, 2025
Data Sourced
via Ubuntu·06:16 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-40951?

CVE-2024-40951 has been classified as a medium-severity vulnerability due to the potential for denial-of-service conditions.

2

How do I fix CVE-2024-40951?

To fix CVE-2024-40951, update to the recommended Linux kernel versions or patches provided by your distribution.

3

Which versions of the Linux kernel are affected by CVE-2024-40951?

CVE-2024-40951 affects versions of the Linux kernel between 6.6 and 6.9.7, along with specific release candidates like 6.10-rc1 to 6.10-rc4.

4

What component of the Linux kernel is impacted by CVE-2024-40951?

CVE-2024-40951 specifically impacts the OCFS2 file system component of the Linux kernel.

5

Is there a known exploit for CVE-2024-40951?

As of now, there are no publicly available exploits for CVE-2024-40951, but it is advisable to patch systems to prevent potential attacks.

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