ocfs2: fix NULL h_transaction deref in ocfs2_assure_trans_credits (Linux Linux)

CVE-2026-72163
Not available

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 12 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

Description

In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix NULL h_transaction deref in ocfs2_assure_trans_credits [BUG] A direct write over unwritten extents can panic the kernel in ocfs2_assure_trans_credits() when the journal aborts during DIO completion. The crash is a general protection fault from a NULL pointer dereference. [CAUSE] ocfs2_dio_end_io_write() loops over a direct write's unwritten extents, marking each written under a single journal handle. If the journal aborts (for example after an I/O error) while the extent tree is being updated, the handle is left aborted with its transaction pointer cleared. The extent merge treats that failure as not critical and reports success, so the loop keeps using the handle. ocfs2_assure_trans_credits() reads the handle's remaining credits without first checking whether the handle is aborted, and that read dereferences the cleared transaction pointer. [FIX] A journal abort is recorded in the handle itself, so callers are expected to test the handle rather than rely on a returned error. Make ocfs2_assure_trans_credits() do that, as the other ocfs2 journal helpers already do, and return -EROFS when the handle is aborted.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected a68b896aa56e435506453ec8835bc991ec3ae687 < 2d80e9c56718435a9c9f5f24dbc954989aead579 ; affected 320273b5649bbcee87f9e65343077189699d2a7a < 942b818b396c24c452681803ff291552317d2ef1 ; affected 9ea2d1c6789722d58ec191f14f9a02518d55b6b4 < 7146d191dae3a8efdb957993fb61a55713186266 ; affected c05ffb693bfb42a48ef3ee88a55b57392984e111 < f14aaaa130356ee4adb44de947c098637c70df8f ; affected be346c1a6eeb49d8fda827d2a9522124c2f72f36 < 6ad7532a23bc94076efe9f1486dd7f7493c090ff ; affected be346c1a6eeb49d8fda827d2a9522124c2f72f36 < bd73971fad89d5ee4ea0ba9b92d2ea08733c4a64
Linux · Linuxaffected 6.10 ; unaffected 0 < 6.10 ; unaffected 5.10.261 ≤ 5.10.* ; unaffected 5.15.212 ≤ 5.15.* ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD