5.7

CVE-2025-68356: gfs2: Prevent recursive memory reclaim

Deferred
AliasesUBUNTU-CVE-2025-68356DEBIAN-CVE-2025-68356
Published 24-12-2025Last modified 21-10-2026

Vulnerability summary

CVE-2025-68356 is a medium (CVSS 5.7) vulnerability in linux. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 13.1% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.7, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.7/10
010
Medium · v4.0 (OSV · Ubuntu), selected by version preference
EPSS score
0.22%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 13 · Related 13

Timeline

  1. 24-12-2025
    PublishedVulnerability first disclosed.
  2. 21-10-2026
    Last modifiedVulnerability information updated.

Description

In the Linux kernel, the following vulnerability has been resolved: gfs2: Prevent recursive memory reclaim Function new_inode() returns a new inode with inode->i_mapping->gfp_mask set to GFP_HIGHUSER_MOVABLE. This value includes the __GFP_FS flag, so allocations in that address space can recurse into filesystem memory reclaim. We don't want that to happen because it can consume a significant amount of stack memory. Worse than that is that it can also deadlock: for example, in several places, gfs2_unstuff_dinode() is called inside filesystem transactions. This calls filemap_grab_folio(), which can allocate a new folio, which can trigger memory reclaim. If memory reclaim recurses into the filesystem and starts another transaction, a deadlock will ensue. To fix these kinds of problems, prevent memory reclaim from recursing into filesystem code by making sure that the gfp_mask of inode address spaces doesn't include __GFP_FS. The "meta" and resource group address spaces were already using GFP_NOFS as their gfp_mask (which doesn't include __GFP_FS). The default value of GFP_HIGHUSER_MOVABLE is less restrictive than GFP_NOFS, though. To avoid being overly limiting, use the default value and only knock off the __GFP_FS flag. I'm not sure if this will actually make a difference, but it also shouldn't hurt. This patch is loosely based on commit ad22c7a043c2 ("xfs: prevent stack overflows from page cache allocation"). Fixes xfstest generic/273.

CVSS metrics

1 score · 1 source · 1 version

EPSS trend

Probability

0.22%

Chance of exploitation in the next 30 days

Percentile

13%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.21% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

No weakness data has been published for this record.

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu132 products
  • linuxAll versions (No fix recorded) | < 6.17.0-19.19
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 6.17.0-1009.9
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Debian1 product
  • linux< 6.12.63-1 | < 6.17.13-1
Linux1 product
  • linux≥ dc0b9435238c1a68150c798c9c7a1b5d7414cbb9, < 66eb53cecc5f83183535bbfb2fa6464322049b61 | ≥ dc0b9435238c1a68150c798c9c7a1b5d7414cbb9, < edb2b255618621dc83d0ec23150e16b2c697077f | ≥ dc0b9435238c1a68150c798c9c7a1b5d7414cbb9, < 9c0960ed112398bdb6c60ccf6e6b583bc59acede | ≥ dc0b9435238c1a68150c798c9c7a1b5d7414cbb9, < 49e7347f4644d031306d56cb4d51e467cbdcbc69 | ≥ dc0b9435238c1a68150c798c9c7a1b5d7414cbb9, < 2c5f4a53476e3cab70adc77b38942c066bd2c17c | 6.6

3 vendors · 134 products

References

14 links
Show all 14 references