CVE-2024-40951ocfs2: fix NULL pointer dereference in ocfs2_abort_trigger()
- 5.5MediumCVSS base score
- 0.24%Exploitation in 30 daysEPSS · top 85% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix NULL pointer dereference in ocfs2_abort_trigger() bdev->bd_super has been removed and commit 8887b94d9322 change the usage from bdev->bd_super to b_assoc_map->host->i_sb. Since ocfs2 hasn't set bh->b_assoc_map, it will trigger NULL pointer dereference when calling into ocfs2_abort_trigger(). 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 ocfs2_caching_info when access journal. [[email protected]: v2]
Timeline
ID reserved
By Linux
Published
- 22 months later
· 22 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.24% · top 85% of all CVEs (12 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected 8887b94d93224e0ef7e1bc6369640e313b8b12f4 – < 67bcecd780609f471260a8c83fb0ae15f27734ce
- affected 8887b94d93224e0ef7e1bc6369640e313b8b12f4 – < eb63357ef229fae061ce7ce2839d558681c42f1a
- affected 8887b94d93224e0ef7e1bc6369640e313b8b12f4 – < 685d03c3795378fca6a1b3d43581f7f1a3fc095f
- affected 6.6
- unaffected < 6.6
- unaffected 6.6.36 – ≤ 6.6.*
- unaffected 6.9.7 – ≤ 6.9.*
- unaffected 6.10 – ≤ *
References
References3
- https://git.kernel.org/stable/c/67bcecd780609f471260a8c83fb0ae15f27734ce (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/eb63357ef229fae061ce7ce2839d558681c42f1a (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/685d03c3795378fca6a1b3d43581f7f1a3fc095f (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-38838 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-40951)Record last updated .