CVE-2024-26692
Severity CVSS v4.0:
Pending analysis
Type:
CWE-787
Out-of-bounds Write
Publication date:
03/04/2024
Last modified:
17/03/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
smb: Fix regression in writes when non-standard maximum write size negotiated<br />
<br />
The conversion to netfs in the 6.3 kernel caused a regression when<br />
maximum write size is set by the server to an unexpected value which is<br />
not a multiple of 4096 (similarly if the user overrides the maximum<br />
write size by setting mount parm "wsize", but sets it to a value that<br />
is not a multiple of 4096). When negotiated write size is not a<br />
multiple of 4096 the netfs code can skip the end of the final<br />
page when doing large sequential writes, causing data corruption.<br />
<br />
This section of code is being rewritten/removed due to a large<br />
netfs change, but until that point (ie for the 6.3 kernel until now)<br />
we can not support non-standard maximum write sizes.<br />
<br />
Add a warning if a user specifies a wsize on mount that is not<br />
a multiple of 4096 (and round down), also add a change where we<br />
round down the maximum write size if the server negotiates a value<br />
that is not a multiple of 4096 (we also have to check to make sure that<br />
we do not round it down to zero).
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.3 (including) | 6.6.18 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.7.6 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.8:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.8:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.8:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.8:rc4:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/4145ccff546ea868428b3e0fe6818c6261b574a9
- https://git.kernel.org/stable/c/4860abb91f3d7fbaf8147d54782149bb1fc45892
- https://git.kernel.org/stable/c/63c35afd50e28b49c5b75542045a8c42b696dab9
- https://git.kernel.org/stable/c/4145ccff546ea868428b3e0fe6818c6261b574a9
- https://git.kernel.org/stable/c/4860abb91f3d7fbaf8147d54782149bb1fc45892
- https://git.kernel.org/stable/c/63c35afd50e28b49c5b75542045a8c42b696dab9



