PT-2026-61097 · Linux · Linux
CVE-2026-53392
·
Published
2026-07-19
·
Updated
2026-07-19
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
In the Linux kernel, the following vulnerability has been resolved:
NFSv4/flexfiles: reject zero filehandle version count
ff layout alloc lseg() decodes the filehandle-version array count
from the flexfiles layout body. The value is used as the count for
kzalloc objs(), and the current code only rejects NULL.
A zero count yields ZERO SIZE PTR, which can be stored in
dss info->fh versions even though later flexfiles paths assume that at
least one filehandle version exists.
Reject fh count == 0 before the allocation, matching the existing zero
version count validation in the flexfiles GETDEVICEINFO parser.
A QEMU/KASAN run with a malformed flexfiles layout hit:
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
RIP: 0010:ff layout encode ff layoutupdate.isra.0+0x15f/0x750
ff layout encode layoutreturn+0x683/0x970
nfs4 xdr enc layoutreturn+0x278/0x3a0
Kernel panic - not syncing: Fatal exception
The patched kernel rejects the malformed layout without KASAN/oops/panic,
and a valid fh count=1 regression still opens, reads, and unmounts cleanly.
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Linux