CVE-2026-98681: smb: client: split cifsFileInfo bitfields to avoid shared-byte RMW races
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
smb: client: split cifsFileInfo bitfields to avoid shared-byte RMW races
The invalidHandle, swapfile, oplock_break_cancelled, offload, and status_file_deleted fields are stored in the same bitfield byte in struct cifsFileInfo, but are updated in different code paths that may run simultaneously, and are protected by different locks. Since bitfield assignments generate byte-level read-modify-write operations, a modification to one flag can overwrite a concurrent modification to another flag.
To avoid these races, convert these flags from a bitfield to separate bool fields.
The Linux kernel CVE team has assigned CVE-2026-98681 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.32 with commit 3bc303c254335dbd7c7012cc1760b12f1d5514d3 and fixed in 6.12.113 with commit 3786ee67658a2c80fef2544e7de2cd329e043cf9 Issue introduced in 2.6.32 with commit 3bc303c254335dbd7c7012cc1760b12f1d5514d3 and fixed in 6.18.56 with commit 4165641d06ef44f3a31b77a28048b6c737e885e7 Issue introduced in 2.6.32 with commit 3bc303c254335dbd7c7012cc1760b12f1d5514d3 and fixed in 7.2.10 with commit d9d23d115610e0342e768f6cb525d91c7b154027 Issue introduced in 2.6.32 with commit 3bc303c254335dbd7c7012cc1760b12f1d5514d3 and fixed in 7.3-rc6 with commit 19465a9aeb664f1d710d0d22c07c31bfb7c85446
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98681
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/smb/client/cifsglob.h
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/3786ee67658a2c80fef2544e7de2cd329e043cf9 https://git.kernel.org/stable/c/4165641d06ef44f3a31b77a28048b6c737e885e7 https://git.kernel.org/stable/c/d9d23d115610e0342e768f6cb525d91c7b154027 https://git.kernel.org/stable/c/19465a9aeb664f1d710d0d22c07c31bfb7c85446