smb: server: size directory name conversion buffer correctly
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: smb: server: size directory name conversion buffer correctly A 2048-byte ASCII directory name needs 4098 bytes when converted to UTF-16, including the terminator. ksmbd_convert_dir_info_name() caps its allocation at PATH_MAX and writes past the end of that buffer. Allocate space for one UTF-16 code unit per input byte plus the terminator. Use kmalloc_array() to check the size calculation.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 534f1360fa87a1a72a5f25541103c66b8d42f73c; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 9b9d681fd3a78932331ab1246503f102d489cd63; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 84e2e9e1167ea4a6ea68b90eb190bd0350e7be74; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before e736ee3660eac5922729a9b3c55cecd74611663c; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before 93d1fbe38f0c1f230fdd24410353b1fd9e5883d3; from e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9, before c8a4c381fd68895bbb077df9b5322c8987b31cf5; and 1 more | 534f1360fa87a1a72a5f25541103c66b8d42f73c; 9b9d681fd3a78932331ab1246503f102d489cd63; 84e2e9e1167ea4a6ea68b90eb190bd0350e7be74; e736ee3660eac5922729a9b3c55cecd74611663c |
| Linux Linux | Software | 5.15 | not recorded |
The 7.5 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | High | Hard to carry out. It depends on conditions the attacker cannot control. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.6 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 7 sources for this flaw, none tagged as a vendor patch.