Description
In the Linux kernel, the following vulnerability has been resolved:

ufs: validate cylinder group metadata before caching it

ufs_read_cylinder() copies the cylinder group index and the rotor
positions straight from the on-disk group and caches them without any
check:

ucpi->c_cgx = fs32_to_cpu(sb, ucg->cg_cgx);
ucpi->c_rotor = fs32_to_cpu(sb, ucg->cg_rotor);
ucpi->c_frotor = fs32_to_cpu(sb, ucg->cg_frotor);
ucpi->c_irotor = fs32_to_cpu(sb, ucg->cg_irotor);

They are then used as indices during allocation and free:

- c_cgx indexes the cylinder summary array as
UFS_SB(sb)->fs_cs(ucpi->c_cgx), so a value past s_ncg writes a 32
bit count outside the s_csp allocation.

- c_frotor becomes a bitmap scan start, start = c_frotor >> 3, and
then length = ((s_fpg + 7) >> 3) - start. A start beyond the block
bitmap wraps the unsigned length to a huge value, so ubh_scanc()
walks far past the cylinder group buffers. c_irotor drives the
inode bitmap the same way.

A crafted image can set any of these freely, turning an ordinary
allocation into an out of bounds access.

Reject a cylinder group whose recorded index does not match the group
being read, or whose rotors fall outside the group, before the metadata
is cached. Valid filesystems keep cg_cgx equal to the group number and
the rotors within the group, so only malformed images are rejected.
Published: 2026-09-25
Score: 7 High
EPSS: < 1% Very Low
KEV: No
Impact: Out‑of‑bounds memory access that can lead to kernel memory corruption or code execution
Action: Apply Patch
AI Analysis

Impact

A flaw in the UFS implementation causes cylinder group metadata to be cached from disk without validation. The cached indices and rotor values are then used directly as offsets when allocating and freeing space. A crafted UFS image can set these values to arbitrary, out‑of‑range values, turning a normal allocation into an out‑of‑bounds read or write. This uncontrolled memory manipulation can corrupt kernel data structures, potentially allowing an attacker to gain elevated privileges, execute arbitrary code, or crash the system.

Affected Systems

All Linux kernel builds that include UFS support are potentially affected until a kernel update that implements the metadata‑validation logic is installed. Any system that mounts a UFS filesystem from a device containing malformed metadata, such as a corrupted image or a malicious filesystem, is exposed. The vulnerability applies to all kernel versions prior to the patch, across all architectures that support UFS.

Risk and Exploitability

The CVSS score of 7 indicates moderate‑to‑severe risk. The EPSS score is less than 1%, suggesting a low probability of exploitation at the time of this analysis. This vulnerability occurs in privileged kernel code, so a local attacker with the ability to mount a crafted UFS filesystem—typically requiring root privileges or administrative access—is the most direct threat. The likely attack vector is local mounting of a malicious image, as the description does not explicitly state remote exploitation. Remote exploitation would only be possible if an attacker could influence the mounting of a UFS volume over a network share or supply a malicious filesystem image to a system that auto‑mounts untrusted media, which is less probable.

Generated by OpenCVE AI on October 1, 2026 at 10:04 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a kernel version that includes the UFS metadata validation fix.
  • If an upgrade is not immediately possible, disable UFS support or configure the kernel to reject mounting of UFS filesystems from untrusted media.
  • For environments that must retain UFS support, mount UFS filesystems read‑only from trusted media, isolate them in separate namespaces, and monitor system logs for kernel panics or oops messages that could indicate exploitation.

Generated by OpenCVE AI on October 1, 2026 at 10:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4841-1 linux security update
Debian DSA Debian DSA DSA-6528-1 linux security update
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
History

Sat, 03 Oct 2026 11:15:00 +0000


Thu, 01 Oct 2026 07:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
CWE-126
CWE-20

Wed, 30 Sep 2026 00:15:00 +0000


Fri, 25 Sep 2026 20:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
CWE-126
CWE-20

Fri, 25 Sep 2026 15:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ufs: validate cylinder group metadata before caching it ufs_read_cylinder() copies the cylinder group index and the rotor positions straight from the on-disk group and caches them without any check: ucpi->c_cgx = fs32_to_cpu(sb, ucg->cg_cgx); ucpi->c_rotor = fs32_to_cpu(sb, ucg->cg_rotor); ucpi->c_frotor = fs32_to_cpu(sb, ucg->cg_frotor); ucpi->c_irotor = fs32_to_cpu(sb, ucg->cg_irotor); They are then used as indices during allocation and free: - c_cgx indexes the cylinder summary array as UFS_SB(sb)->fs_cs(ucpi->c_cgx), so a value past s_ncg writes a 32 bit count outside the s_csp allocation. - c_frotor becomes a bitmap scan start, start = c_frotor >> 3, and then length = ((s_fpg + 7) >> 3) - start. A start beyond the block bitmap wraps the unsigned length to a huge value, so ubh_scanc() walks far past the cylinder group buffers. c_irotor drives the inode bitmap the same way. A crafted image can set any of these freely, turning an ordinary allocation into an out of bounds access. Reject a cylinder group whose recorded index does not match the group being read, or whose rotors fall outside the group, before the metadata is cached. Valid filesystems keep cg_cgx equal to the group number and the rotors within the group, so only malformed images are rejected.
Title ufs: validate cylinder group metadata before caching it
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:10:53.241Z

Reserved: 2026-09-25T10:18:58.203Z

Link: CVE-2026-97926

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:19.833

Modified: 2026-10-19T10:17:43.410

Link: CVE-2026-97926

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-97926 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T10:15:06Z

Weaknesses