# CVE-2023-52631: fs/ntfs3: Fix an NULL dereference bug

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-04-02T06:22:07.699Z
- Modified: 2026-06-17T06:43:12.643Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- 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

## References

- <https://git.kernel.org/stable/c/ae4acad41b0f93f1c26cc0fc9135bb79d8282d0b> (patch)
- <https://git.kernel.org/stable/c/ec1bedd797588fe38fc11cba26d77bb1d9b194c6> (patch)
- <https://git.kernel.org/stable/c/fb7bcd1722bc9bc55160378f5f99c01198fd14a7> (patch)
- <https://git.kernel.org/stable/c/686820fe141ea0220fc6fdfc7e5694f915cf64b2> (patch)
- <https://git.kernel.org/stable/c/b2dd7b953c25ffd5912dda17e980e7168bebcf6c> (patch)

## Sources

- CVE List: [CVE-2023-52631](https://www.cve.org/CVERecord?id=CVE-2023-52631), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52631](https://nvd.nist.gov/vuln/detail/CVE-2023-52631), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52631 · Whole record: https://cve.day/CVE-2023-52631.json · Rebuilt by cve.day 2026-11-25T22:58:33.466Z
