Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: do not read past the DACL in the access denied debug message When smb_check_perm_dacl() falls back to the POSIX ACL and then denies the request, its debug message prints the access mask of the ACE that the second DACL walk stopped at. On that path the walk ran to the end of the DACL, so the pointer is one past the last ACE. If the DACL is the last part of the stored security descriptor, the message reads 4 bytes past the buffer, and KASAN reports a slab-out-of-bounds read in smb_check_perm_dacl(). Print the requested and allowed masks instead. They are what the check compares.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
e2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < edf66403d6a590fbe32b7904ccbf401498165f1eaffectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 97681e33ec605e5dfabfed7df58e1a879365523eaffectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 8e332d59d71200487156332a6a1f8138d0588fb0affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 63e00a23557bdd5da71eb5cd7eac79ee976fc362affectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < f4fbf803c2575e22e2573544308e1e29c80ee4eeaffectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 8f3be5f54a9447ec10346e28835e7368e40b5e9daffectede2f34481b24db2fd634b5edb0a5bd0e4d38cc6e9 to < 8296a64df5448548f410fb246c1d88a93609602baffected
Linux Linux
Default version status: affected
5.15affected0 to < 5.15unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.5 to ≤ 7.3.*unaffected7.4-rc2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/edf66403d6a590fbe32b7904ccbf401498165f1e ↗
- https://git.kernel.org/stable/c/97681e33ec605e5dfabfed7df58e1a879365523e ↗
- https://git.kernel.org/stable/c/8e332d59d71200487156332a6a1f8138d0588fb0 ↗
- https://git.kernel.org/stable/c/63e00a23557bdd5da71eb5cd7eac79ee976fc362 ↗
- https://git.kernel.org/stable/c/f4fbf803c2575e22e2573544308e1e29c80ee4ee ↗
- https://git.kernel.org/stable/c/8f3be5f54a9447ec10346e28835e7368e40b5e9d ↗
- https://git.kernel.org/stable/c/8296a64df5448548f410fb246c1d88a93609602b ↗