# CVE-2024-26692: smb: Fix regression in writes when non-standard maximum write size negotiated

- Severity: High 8.3 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2024-04-03T14:54:53.343Z
- Modified: 2026-08-05T11:26:44.270Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

smb: Fix regression in writes when non-standard maximum write size negotiated

The conversion to netfs in the 6.3 kernel caused a regression when
maximum write size is set by the server to an unexpected value which is
not a multiple of 4096 (similarly if the user overrides the maximum
write size by setting mount parm "wsize", but sets it to a value that
is not a multiple of 4096).  When negotiated write size is not a
multiple of 4096 the netfs code can skip the end of the final
page when doing large sequential writes, causing data corruption.

This section of code is being rewritten/removed due to a large
netfs change, but until that point (ie for the 6.3 kernel until now)
we can not support non-standard maximum write sizes.

Add a warning if a user specifies a wsize on mount that is not
a multiple of 4096 (and round down), also add a change where we
round down the maximum write size if the server negotiates a value
that is not a multiple of 4096 (we also have to check to make sure that
we do not round it down to zero).

(As written by CVE List.)

## Affected

- Linux Linux: from d08089f649a0cfb2099c8551ac47eef0cc23fdf2 before 4145ccff546ea868428b3e0fe6818c6261b574a9; from d08089f649a0cfb2099c8551ac47eef0cc23fdf2 before 63c35afd50e28b49c5b75542045a8c42b696dab9; from d08089f649a0cfb2099c8551ac47eef0cc23fdf2 before 4860abb91f3d7fbaf8147d54782149bb1fc45892; 6.3 (not affected: before 6.3; from 6.6.18 up to 6.6.*; from 6.7.6 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 6.3 before 6.6.18; from 6.7 before 6.7.6; 6.8

## Every score

- Linux: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/4145ccff546ea868428b3e0fe6818c6261b574a9> (patch)
- <https://git.kernel.org/stable/c/63c35afd50e28b49c5b75542045a8c42b696dab9> (patch)
- <https://git.kernel.org/stable/c/4860abb91f3d7fbaf8147d54782149bb1fc45892> (patch)

## Sources

- CVE List: [CVE-2024-26692](https://www.cve.org/CVERecord?id=CVE-2024-26692), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-26692](https://nvd.nist.gov/vuln/detail/CVE-2024-26692), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-26692 · Whole record: https://cve.day/CVE-2024-26692.json · Rebuilt by cve.day 2026-11-25T22:58:38.513Z
