Skip to main content
VulnerabilityPublished Updated

CVE-2026-31597: Linux kernel · ocfs2: fix use-after-free in ocfs2_fault() when VM_FAULT_RETRY

Affects Linux kernelSource GCVE Database

0
Compare

Not known to be exploited · CVSS 7.8 High.

Data as of 12 Nov 2026, 03:32 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (Linux)CVSS 3.17.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 11 Nov 2026.

What to do

AI-suggested

A fix has been implemented in the Linux kernel to address this vulnerability by changing how ocfs2_fault() handles pointers when VM_FAULT_RETRY is returned. Users should update to the fixed kernel version once available. Since no specific patch links or fixed versions are provided, check the official Linux kernel advisories for the relevant patch and apply it promptly.

Description

A use-after-free vulnerability in the Linux kernel's ocfs2 filesystem was fixed. The flaw occurs in the ocfs2_fault() function when filemap_fault() returns VM_FAULT_RETRY, potentially causing a concurrent munmap() to free a vm_area_struct that ocfs2_fault() still references. This leads to a dangling pointer dereference. The fix involves avoiding use of the freed pointer by saving necessary data before the lock is dropped.

References

Community reviews

Loading reviews…