Overview
About vulnerability
In the Linux kernel, the following vulnerability has been resolved:
fs/smb/client: fix out-of-bounds read in cifs_sanitize_prepath
When cifs_sanitize_prepath is called with an empty string or a string containing only delimiters (e.g., “/”), the current logic attempts to check *(cursor2 - 1) before cursor2 has advanced. This results in an out-of-bounds read.
This patch adds an early exit check after stripping prepended delimiters. If no path content remains, the function returns NULL.
The bug was identified via manual audit and verified using a standalone test case compiled with AddressSanitizer, which triggered a SEGV on affected inputs.
Details
- Affected product:
- AlmaLinux 9.2 ESU , CentOS 8.4 ELS , CentOS 8.5 ELS , CentOS Stream 8 ELS , TuxCare 9.6 ESU , Ubuntu 20.04 ELS
- Affected packages:
- linux-meta @ 5.4.0 (+6 more)
Fixes
KernelCare state
Live-patch status from KernelCare for each operating system.
| Operating system | Status | Covered kernels |
|---|---|---|
| AlmaLinux 10 | Released |
43 kernels
|
| AlmaLinux 8 | Released |
95 kernels
|
| AlmaLinux 9 | Released |
109 kernels
|
| Amazon Linux 2023 | Planned | — |
| CloudLinux OS 7h | Released |
89 kernels
|
| CloudLinux OS 8 | Released |
86 kernels
|
| Debian 12 | In Rollout |
40 kernels
|
| Debian 13 | Planned | — |
| Oracle Linux 8 | Released |
93 kernels
|
| Oracle Linux 9 | Released |
108 kernels
|
| RHEL 10 | Released |
46 kernels
|
| RHEL 8 | Released |
90 kernels
|
| RHEL 9 | Released |
106 kernels
|
| Rocky Linux 10 | Released |
32 kernels
|
| Rocky Linux 8 | Released |
81 kernels
|
| Rocky Linux 9 | Released |
87 kernels
|
| Ubuntu 22.04 | Planned | — |
| Ubuntu 24.04 | Planned | — |