Overview
About vulnerability
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.
Details
- Affected product:
- CentOS 7 ELS , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , Oracle Linux 7 ELS , RHEL 7 ELS , Ubuntu 16.04 ELS
- Affected packages:
- kernel @ 4.18.0 (+7 more)
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.