Linux Kernelのcifs不具合で権限のないユーザーがメモリ外に書き込める脆弱性
Summary
Linux KernelのSMBクライアント(cifs)で、拡張属性を設定するSetEA処理が要求バッファーの大きさを確かめずに値をコピーするため、メモリ外への書き込みが起きる脆弱性です。一般ユーザーでもSMB1でマウントした領域に対してsetxattrを実行すると、この経路に届く可能性があります。影響を受けるのは2.6.12以降7.2.13より前のKernelで、修正版は7.2.13です。修正版へのアップデートをおすすめします。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Linux KernelのSMBクライアント(cifs)で、拡張属性を設定するSetEA処理が要求バッファーの大きさを確かめずに値をコピーするため、メモリ外への書き込みが起きる脆弱性です。一般ユーザーでもSMB1でマウントした領域に対してsetxattrを実行すると、この経路に届く可能性があります。影響を受けるのは2.6.12以降7.2.13より前のKernelで、修正版は7.2.13です。修正版へのアップデートをおすすめします。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 2.6.12, < 6.1.193→ 6.1.193 ≥ 6.2.0, < 6.6.163→ 6.6.163 ≥ 6.7.0, < 6.12.117→ 6.12.117 ≥ 6.13.0, < 6.18.61→ 6.18.61 ≥ 6.19.0, < 7.2.13→ 7.2.13 |
6.1.193 6.6.163 6.12.117 6.18.61 7.2.13 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-99109 linux-lts Fix available
- Debian DEBIAN-CVE-2026-99109 linux-6.12, linux Fix available
- Ubuntu UBUNTU-CVE-2026-99109 linux-vmware, linux-realtime, linux-raspi +12 more Fix available
Original description The description as published by the source.
In the Linux kernel, the following vulnerability has been resolved:
smb: client: reject SetEA requests that do not fit the request buffer
CIFSSMBSetEA() copies the caller's extended attribute value into the
SMB request buffer without checking that it fits. The requirement is
stated in the source but was never implemented:
/*BB add length check to see if it would fit in
negotiated SMB buffer size BB */
/* if (ea_value_len > buffer_size - 512 (enough for header)) */
if (ea_value_len)
memcpy(parm_data->list.name + name_len + 1,
ea_value, ea_value_len);
The only bound applied on the way in is in cifs_xattr_set():
#define MAX_EA_VALUE_SIZE CIFSMaxBufSize
...
if (size > MAX_EA_VALUE_SIZE)
CIFSMaxBufSize is the full payload capacity of the buffer, so a value
of exactly that size leaves no room for the SMB header, the TRANS2
parameter block, the fealist header and the EA name that are written
ahead of it in the same object.
SendReceive() already enforces the correct limit on this very length:
if (in_len > CIFSMaxBufSize + MAX_CIFS_HDR_SIZE)
but it is called after the copy has taken place. An unprivileged
setxattr(2) on an SMB1 mount with a 250-byte name and a 16384-byte
value writes 16384 bytes starting 345 bytes into a 16588-byte
cifs_request object, ending 141 bytes past it:
BUG: KASAN: slab-out-of-bounds in CIFSSMBSetEA+0xabc/0xde0
Write of size 16384 at addr ffff888003aa0159 by task init/68
__asan_memcpy+0x3c/0x60
CIFSSMBSetEA+0xabc/0…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web github.com
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org