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

nilfs2: fix slab-out-of-bounds in nilfs_direct_propagate after truncation

Shuangpeng Bai reported that KASAN detected a slab-out-of-bounds error
in nilfs_direct_propagate() during testing.

Analysis revealed that after truncating a file, a node block immediately
below the B-tree root was not deleted. Instead, it remained in the B-tree
node cache in a dirty state. The log writer subsequently detected this
block and incorrectly invoked nilfs_direct_propagate() on it, which is
designed to handle only data blocks in direct mapping.

B-tree nodes in the cache are managed by virtual block numbers, and their
logical keys typically exceed the range expected by direct mapping.
Consequently, processing such a node as a direct mapping entry triggers
a slab-out-of-bounds access.

The root cause is that when a B-tree mapping collapses into a direct
mapping during truncation, an intermediate node block pointed to by the
root node is left behind as garbage instead of being explicitly deleted.

This resolves the issue by adding a nilfs_btree_discard() operation
to delete the remaining intermediate node block during the conversion.
A 'deform' flag is added to the bop_delete interface to explicitly signal
that the deletion is part of a mapping transformation. This allows the
B-tree mapping implementation to perform the necessary cleanup and
discarding of the residual node structure that would be otherwise be left
orphaned after the transition.
Published: 2026-09-11
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Kernel memory corruption (potential privilege escalation)
Action: Patch promptly
AI Analysis

Impact

The vulnerability is a slab‑out‑of‑bounds error in nilfs_direct_propagate that can be triggered after a file is truncated on a nilfs2 filesystem. The bug occurs when a B‑tree mapping collapses into a direct mapping and a background node block is left in the cache as dirty. When the log writer later processes that orphaned node as a direct data block, the function reads outside the allocated slab, corrupting kernel memory. This memory corruption can lead to privilege escalation or a kernel panic. The weakness is identified as CWE‑787 (Out‑of‑bounds Write).

Affected Systems

All systems running a Linux kernel that includes the nilfs2 filesystem and have not yet applied the nilfs_btree_discard fix are affected. The specific kernel versions are not enumerated in the advisory, so any kernel build that predates the commit adding nilfs_btree_discard should be considered vulnerable. Users of distributions that ship the kernel without the patch should check their kernel version or apply the upstream fix.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity. The EPSS score is below 1 %, meaning exploitation is unlikely in the near term, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is local; an attacker must have write or truncate access to a nilfs2 file to trigger the bug. Because the flaw manifests only after a file truncation that leaves an orphaned node in the B-tree cache, it is not trivially exploitable from a remote network alone, but a compromised user or process with sufficient privileges could craft the trigger and cause kernel memory corruption or a crash.

Generated by OpenCVE AI on September 15, 2026 at 03:12 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the nilfs_btree_discard fix, such as the latest stable release from your distribution's repository.
  • Reboot the system to load the updated kernel once the patch is applied.
  • If a kernel update cannot be performed immediately, restrict write and truncate permissions on nilfs2 partitions or mount them read‑only until the patch can be applied. Alternatively, apply the upstream backport patch manually after reviewing its integrity.

Generated by OpenCVE AI on September 15, 2026 at 03:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6528-1 linux security update
History

Mon, 14 Sep 2026 12:30:00 +0000


Sun, 13 Sep 2026 06:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

cvssV3_1

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


Sat, 12 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


Fri, 11 Sep 2026 23:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix slab-out-of-bounds in nilfs_direct_propagate after truncation Shuangpeng Bai reported that KASAN detected a slab-out-of-bounds error in nilfs_direct_propagate() during testing. Analysis revealed that after truncating a file, a node block immediately below the B-tree root was not deleted. Instead, it remained in the B-tree node cache in a dirty state. The log writer subsequently detected this block and incorrectly invoked nilfs_direct_propagate() on it, which is designed to handle only data blocks in direct mapping. B-tree nodes in the cache are managed by virtual block numbers, and their logical keys typically exceed the range expected by direct mapping. Consequently, processing such a node as a direct mapping entry triggers a slab-out-of-bounds access. The root cause is that when a B-tree mapping collapses into a direct mapping during truncation, an intermediate node block pointed to by the root node is left behind as garbage instead of being explicitly deleted. This resolves the issue by adding a nilfs_btree_discard() operation to delete the remaining intermediate node block during the conversion. A 'deform' flag is added to the bop_delete interface to explicitly signal that the deletion is part of a mapping transformation. This allows the B-tree mapping implementation to perform the necessary cleanup and discarding of the residual node structure that would be otherwise be left orphaned after the transition.
Title nilfs2: fix slab-out-of-bounds in nilfs_direct_propagate after truncation
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-09-14T12:02:13.886Z

Reserved: 2026-09-11T19:38:34.759Z

Link: CVE-2026-89723

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-11T20:20:01.710

Modified: 2026-09-14T13:19:21.417

Link: CVE-2026-89723

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-11T19:46:35Z

Links: CVE-2026-89723 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-15T03:15:09Z

Weaknesses