5.5medium
fs/ntfs3: Fix an NULL dereference bug
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.22% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: Fix an NULL dereference bug The issue here is when this is called from ntfs_load_attr_list(). The "size" comes from le32_to_cpu(attr->res.data_size) so it can't overflow on a 64bit systems but on 32bit systems the "+ 1023" can overflow and the result is zero. This means that the kmalloc will succeed by returning the ZERO_SIZE_PTR and then the memcpy() will crash with an Oops on the next line.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from be71b5cba2e6485e8959da7a9f9a44461a1bb074 before ae4acad41b0f93f1c26cc0fc9135bb79d8282d0b, from be71b5cba2e6485e8959da7a9f9a44461a1bb074 before ec1bedd797588fe38fc11cba26d77bb1d9b194c6, from be71b5cba2e6485e8959da7a9f9a44461a1bb074 before fb7bcd1722bc9bc55160378f5f99c01198fd14a7, from be71b5cba2e6485e8959da7a9f9a44461a1bb074 before 686820fe141ea0220fc6fdfc7e5694f915cf64b2, from be71b5cba2e6485e8959da7a9f9a44461a1bb074 before b2dd7b953c25ffd5912dda17e980e7168bebcf6c, 5.15 Not affected: before 5.15, from 5.15.149 up to 5.15.*, from 6.1.78 up to 6.1.*, from 6.6.17 up to 6.6.*, from 6.7.5 up to 6.7.*, from 6.8 up to * | CVE List |
| linux linux_kernel | from 5.15 before 5.15.149, from 5.16 before 6.1.78, from 6.2 before 6.6.17, from 6.7 before 6.7.5, 6.8 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: fs/ntfs3: Fix an NULL dereference bug The issue here is when this is called from ntfs_load_attr_list(). The "size" comes from le32_to_cpu(attr->res.data_size) so it can't overflow on a 64bit systems but on 32bit systems the "+ 1023" can overflow and the result is zero. This means that the kmalloc will succeed by returning the ZERO_SIZE_PTR and then the memcpy() will crash with an Oops on the next line.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: fs/ntfs3: corrige un error de desreferencia NULL El problema aquí es cuando se llama desde ntfs_load_attr_list(). El "tamaño" proviene de le32_to_cpu(attr->res.data_size), por lo que no puede desbordarse en sistemas de 64 bits, pero en sistemas de 32 bits el "+ 1023" puede desbordarse y el resultado es cero. Esto significa que kmalloc tendrá éxito al devolver ZERO_SIZE_PTR y luego memcpy() fallará con un Ups en la siguiente línea.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-52631 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2023-52631 changed 2026-06-17 | Public domain |