Linux Kernelのcifs不具合で権限のないユーザーがメモリ外に書き込める脆弱性
概要
Linux KernelのSMBクライアント(cifs)で、拡張属性を設定するSetEA処理が要求バッファーの大きさを確かめずに値をコピーするため、メモリ外への書き込みが起きる脆弱性です。一般ユーザーでもSMB1でマウントした領域に対してsetxattrを実行すると、この経路に届く可能性があります。影響を受けるのは2.6.12以降7.2.13より前のKernelで、修正版は7.2.13です。修正版へのアップデートをおすすめします。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Linux KernelのSMBクライアント(cifs)で、拡張属性を設定するSetEA処理が要求バッファーの大きさを確かめずに値をコピーするため、メモリ外への書き込みが起きる脆弱性です。一般ユーザーでもSMB1でマウントした領域に対してsetxattrを実行すると、この経路に届く可能性があります。影響を受けるのは2.6.12以降7.2.13より前のKernelで、修正版は7.2.13です。修正版へのアップデートをおすすめします。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| LinuxLinux | — | 記載なし |
| 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 |
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の記録です。修正版は配布版ごとに違うので、リンク先で確かめてください。
- BellSoft Alpaquita BELL-CVE-2026-99109 linux-lts 修正版あり
- Debian DEBIAN-CVE-2026-99109 linux-6.12, linux 修正版あり
- Ubuntu UBUNTU-CVE-2026-99109 linux-vmware, linux-realtime, linux-raspi ほか 12 件 修正版あり
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
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…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- 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