{"id":"CVE-2024-40951","aliases":["CVE-2024-40951"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2: fix NULL pointer dereference in ocfs2_abort_trigger()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix NULL pointer dereference in ocfs2_abort_trigger()\n\nbdev->bd_super has been removed and commit 8887b94d9322 change the usage\nfrom bdev->bd_super to b_assoc_map->host->i_sb.  Since ocfs2 hasn't set\nbh->b_assoc_map, it will trigger NULL pointer dereference when calling\ninto ocfs2_abort_trigger().\n\nActually this was pointed out in history, see commit 74e364ad1b13.  But\nI've made a mistake when reviewing commit 8887b94d9322 and then\nre-introduce this regression.\n\nSince we cannot revive bdev in buffer head, so fix this issue by\ninitializing all types of ocfs2 triggers when fill super, and then get the\nspecific ocfs2 trigger from ocfs2_caching_info when access journal.\n\n[joseph.qi@linux.alibaba.com: v2]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix NULL pointer dereference in ocfs2_abort_trigger()\n\nbdev->bd_super has been removed and commit 8887b94d9322 change the usage\nfrom bdev->bd_super to b_assoc_map->host->i_sb.  Since ocfs2 hasn't set\nbh->b_assoc_map, it will trigger NULL pointer dereference when calling\ninto ocfs2_abort_trigger().\n\nActually this was pointed out in history, see commit 74e364ad1b13.  But\nI've made a mistake when reviewing commit 8887b94d9322 and then\nre-introduce this regression.\n\nSince we cannot revive bdev in buffer head, so fix this issue by\ninitializing all types of ocfs2 triggers when fill super, and then get the\nspecific ocfs2 trigger from ocfs2_caching_info when access journal.\n\n[joseph.qi@linux.alibaba.com: v2]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ocfs2: corrige la desreferencia del puntero NULL en ocfs2_abort_trigger() bdev-&gt;bd_super se ha eliminado y el commit 8887b94d9322 cambia el uso de bdev-&gt;bd_super a b_assoc_map-&gt;host-&gt;i_sb. Dado que ocfs2 no ha configurado bh-&gt;b_assoc_map, activará la desreferencia del puntero NULL al llamar a ocfs2_abort_trigger(). En realidad, esto se señaló en la historia, consulte el commit 74e364ad1b13. Pero cometí un error al revisar el commit 8887b94d9322 y luego reintroducir esta regresión. Dado que no podemos reactivar bdev en el encabezado del búfer, solucione este problema inicializando todos los tipos de activadores de ocfs2 cuando complete el super, y luego obtenga el activador de ocfs2 específico de ocfs2_caching_info cuando acceda al diario. [joseph.qi@linux.alibaba.com:v2] Enlace: https://lkml.kernel.org/r/20240602112045.1112708-1-joseph.qi@linux.alibaba.com","source":"nvd"}],"published":"2024-07-12T12:31:55.493Z","modified":"2026-06-17T07:46:56.377Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"8887b94d93224e0ef7e1bc6369640e313b8b12f4","fixed":"67bcecd780609f471260a8c83fb0ae15f27734ce","status":"affected"},{"type":"git","introduced":"8887b94d93224e0ef7e1bc6369640e313b8b12f4","fixed":"eb63357ef229fae061ce7ce2839d558681c42f1a","status":"affected"},{"type":"git","introduced":"8887b94d93224e0ef7e1bc6369640e313b8b12f4","fixed":"685d03c3795378fca6a1b3d43581f7f1a3fc095f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.6.36","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.9.7","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6","fixed":"6.6.36"},{"status":"affected","introduced":"6.7","fixed":"6.9.7"},{"status":"affected","version":"6.10"},{"status":"affected","version":"6.10"},{"status":"affected","version":"6.10"},{"status":"affected","version":"6.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/67bcecd780609f471260a8c83fb0ae15f27734ce","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb63357ef229fae061ce7ce2839d558681c42f1a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/685d03c3795378fca6a1b3d43581f7f1a3fc095f","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T17:03:58.522Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-40951","url":"https://www.cve.org/CVERecord?id=CVE-2024-40951","licence":"CVE Terms of Use","modified":"2026-05-11T20:22:59.113Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-40951","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40951","licence":"Public domain","modified":"2026-06-17T07:46:56.377Z"}],"updatedAt":"2026-11-25T22:58:42.855Z","epss":{"score":0.00239,"percentile":0.16032,"date":"2026-12-01T12:00:22.000Z"}}