cifs: potential buffer overflow in handling symlinks
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ c69c1b6eaea1b3e1eecf7ad2fba0208ac4a11131 · < 9901b07ba42b39266b34a888e48d7306fd707bee| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
cifs: potential buffer overflow in handling symlinks
Smatch printed a warning: arch/x86/crypto/poly1305_glue.c:198 poly1305_update_arch() error: __memcpy() 'dctx->buf' too small (16 vs u32max)
It's caused because Smatch marks 'link_len' as untrusted since it comes from sscanf(). Add a check to ensure that 'link_len' is not larger than the size of the 'link_str' buffer.
From the CVE record · Linux
The Linux kernel's CIFS symlink handling may overflow a buffer if a parsed link length exceeds the link string buffer's size. The input does not specify how an attacker could trigger this or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with CIFS support should check their exposure; affected versions are not specified.