CVE-2026-139276

f2fs: refresh pinned allocation boundary after resize

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

f2fs: refresh pinned allocation boundary after resize

Online shrink updates MAIN_SECS() but leaves resizable_tail_secno and
pinned_area_max_secno unchanged. The pinned allocation limit can exceed
the new main area when shrinking beyond the reserved tail.

Consume the reserved tail by the number of removed sections, clamping
it to zero, before refreshing the shared pinned allocation boundary.
This preserves the boundary while shrinking within the reservation and
limits it to the new main area otherwise, retaining the zoned limit.

Save the old tail count and restore it before rolling back the geometry
if the final checkpoint fails.

Also bound pinned section allocation by the current MAIN_SECS(). Range
evacuation temporarily reduces it before moving cursegs, while the
cached pinned boundary still describes the old geometry. Otherwise, a
pinned curseg can be reallocated into the range being removed.

Analysis

AI-generated

Technical impact

The Linux kernel f2fs filesystem contains a logic error that occurs during an online shrink operation. When the main section count is updated, the pinned allocation boundary is not adjusted, allowing a pinned allocation limit to exceed the new main area when the filesystem is shrunk beyond its reserved tail. This mismatch can result in a pinned curseg being reallocated into a region that has already been removed, leading to corruption of any data that previously resided there. The flaw represents an improper boundary check and can cause kernel‑level memory corruption. Based on the description, it is inferred that triggering the bug requires an attacker to initiate a shrink operation on an f2fs partition, which normally requires kernel or root privileges.

Affected Systems

The vulnerability applies to all Linux kernel releases that include the unpatched f2fs implementation. No specific kernel version range is listed in the advisory, so any kernel containing the affected f2fs code prior to the commit referenced in the provided links is potentially vulnerable.

Risk and Exploitability

The CVSS score is not publicly available, and the EPSS score is not provided. The vulnerability is not listed in the CISA KEV catalog. No public exploitation has been reported. Exploitation requires local or privileged access to modify the size of an f2fs partition, which limits the attack surface. Given the potential for data corruption and the need for kernel privilege to trigger the flaw, the risk is moderate pending a patched kernel release.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that incorporates the f2fs boundary fix referenced in the commit links.
  • Avoid shrinking f2fs partitions beyond the reserved tail until you confirm the filesystem operates correctly after the patch.
  • Run periodic f2fs integrity checks to detect unexpected corruption.

Generated by OpenCVE AI on December 1, 2026 at 10:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-119
CWE-398
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: f2fs: refresh pinned allocation boundary after resize Online shrink updates MAIN_SECS() but leaves resizable_tail_secno and pinned_area_max_secno unchanged. The pinned allocation limit can exceed the new main area when shrinking beyond the reserved tail. Consume the reserved tail by the number of removed sections, clamping it to zero, before refreshing the shared pinned allocation boundary. This preserves the boundary while shrinking within the reservation and limits it to the new main area otherwise, retaining the zoned limit. Save the old tail count and restore it before rolling back the geometry if the final checkpoint fails. Also bound pinned section allocation by the current MAIN_SECS(). Range evacuation temporarily reduces it before moving cursegs, while the cached pinned boundary still describes the old geometry. Otherwise, a pinned curseg can be reallocated into the range being removed.
Title f2fs: refresh pinned allocation boundary after resize
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-398

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM