# CVE-2026-99109: smb: client: reject SetEA requests that do not fit the request buffer

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **Published:** 2026-10-28T10:34:27.507Z
- **Modified:** 2026-11-23T08:17:30.620Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f5b3e6e850ed5128b81f798b74c05f762f1d91c2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f4e01cdab7792ac79eaae27fa4bbbebda3c43382; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bc737f5f5cc3fcd10bd919527cacc0efd703c30b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 79345a5d14b851e9ed28d3a9fe53301661dbcf11; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9efbd764ab80fa86d2258550877a74d78a25e855; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 4aa2c106aef4bf3dfd97c30842db0767b26e8428
- Anyone running Linux 2.6.12

## Description

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/0xde0
   cifs\_xattr\_set+0xd3a/0xff0
   \_\_vfs\_setxattr+0x13e/0x1a0
  The buggy address is located 345 bytes inside of
   allocated 16588-byte region

Apply SendReceive()'s limit to the assembled request before the copy
rather than after it, and widen the byte counters so the sum cannot
wrap before it is tested.

byte\_count is also tested against U16\_MAX, because it is stored in the
16-bit pSMB-\>ByteCount.  That becomes reachable when CIFSMaxBufSize is
raised at module load, where it may be set as high as 1024\*127: with a
5-byte EA name and a 65521-byte value, count is exactly U16\_MAX while
byte\_count is 65556, and cpu\_to\_le16() would truncate it to 20 and
transmit a frame whose ByteCount does not match its length.  Testing
byte\_count covers count as well, since byte\_count is the larger of the
two and count's only 16-bit consumer is written after this point.

check\_add\_overflow() is evaluated first so that total\_len is assigned
before it is reported.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f5b3e6e850ed5128b81f798b74c05f762f1d91c2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f4e01cdab7792ac79eaae27fa4bbbebda3c43382; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bc737f5f5cc3fcd10bd919527cacc0efd703c30b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 79345a5d14b851e9ed28d3a9fe53301661dbcf11; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9efbd764ab80fa86d2258550877a74d78a25e855; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 4aa2c106aef4bf3dfd97c30842db0767b26e8428 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 4aa2c106aef4bf3dfd97c30842db0767b26e8428 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-99109. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99109.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f5b3e6e850ed5128b81f798b74c05f762f1d91c2; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f4e01cdab7792ac79eaae27fa4bbbebda3c43382; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < bc737f5f5cc3fcd10bd919527cacc0efd703c30b; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 79345a5d14b851e9ed28d3a9fe53301661dbcf11, Linux 9efbd764ab80fa86d2258550877a74d78a25e855, Linux 4aa2c106aef4bf3dfd97c30842db0767b26e8428

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-99109 being exploited?

There is no confirmed exploitation: CVE-2026-99109 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-99109?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-99109?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f5b3e6e850ed5128b81f798b74c05f762f1d91c2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f4e01cdab7792ac79eaae27fa4bbbebda3c43382; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bc737f5f5cc3fcd10bd919527cacc0efd703c30b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 79345a5d14b851e9ed28d3a9fe53301661dbcf11; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 9efbd764ab80fa86d2258550877a74d78a25e855; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 4aa2c106aef4bf3dfd97c30842db0767b26e8428; Linux 2.6.12.

### Is there a fix for CVE-2026-99109?

Yes. Fixed in Linux 79345a5d14b851e9ed28d3a9fe53301661dbcf11, Linux 9efbd764ab80fa86d2258550877a74d78a25e855, Linux 4aa2c106aef4bf3dfd97c30842db0767b26e8428. Upgrade Linux to 4aa2c106aef4bf3dfd97c30842db0767b26e8428 or later.

### How do I check if I'm affected by CVE-2026-99109?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/f5b3e6e850ed5128b81f798b74c05f762f1d91c2>
- other: <https://git.kernel.org/stable/c/f4e01cdab7792ac79eaae27fa4bbbebda3c43382>
- other: <https://git.kernel.org/stable/c/bc737f5f5cc3fcd10bd919527cacc0efd703c30b>
- other: <https://git.kernel.org/stable/c/79345a5d14b851e9ed28d3a9fe53301661dbcf11>
- other: <https://git.kernel.org/stable/c/9efbd764ab80fa86d2258550877a74d78a25e855>
- other: <https://git.kernel.org/stable/c/4aa2c106aef4bf3dfd97c30842db0767b26e8428>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-99109>

HTML: <https://flawdb.com/CVE-2026-99109> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-99109>
