# CVE-2023-54272: fs/ntfs3: Fix a possible null-pointer dereference in ni_clear()

- Severity: not scored yet
- 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 13% of CVEs (2026-12-02)
- Published: 2025-12-30T12:16:02.335Z
- Modified: 2026-06-17T06:47:08.103Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

fs/ntfs3: Fix a possible null-pointer dereference in ni_clear()

In a previous commit c1006bd13146, ni->mi.mrec in ni_write_inode()
could be NULL, and thus a NULL check is added for this variable.

However, in the same call stack, ni->mi.mrec can be also dereferenced
in ni_clear():

ntfs_evict_inode(inode)
  ni_write_inode(inode, ...)
    ni = ntfs_i(inode);
    is_rec_inuse(ni->mi.mrec) -> Add a NULL check by previous commit
  ni_clear(ntfs_i(inode))
    is_rec_inuse(ni->mi.mrec) -> No check

Thus, a possible null-pointer dereference may exist in ni_clear().
To fix it, a NULL check is added in this function.

(As written by CVE List.)

## Affected

- Linux Linux: from 4342306f0f0d5ff4315a204d315c1b51b914fca5 before 20f9bfc664d6a478f9a5bbc0c380f80f7a1a06c6; from 4342306f0f0d5ff4315a204d315c1b51b914fca5 before 39c6312009574ca73865354133ca222e7753a71b; from 4342306f0f0d5ff4315a204d315c1b51b914fca5 before e7675f85a92233136c630000a0b7cf97826705da; from 4342306f0f0d5ff4315a204d315c1b51b914fca5 before ec275bf9693d19cc0fdce8436f4c425ced86f6e7; 5.15 (not affected: before 5.15; from 5.15.113 up to 5.15.*; from 6.1.81 up to 6.1.*; from 6.3.4 up to 6.3.*; from 6.4 up to *)

## References

- <https://git.kernel.org/stable/c/20f9bfc664d6a478f9a5bbc0c380f80f7a1a06c6>
- <https://git.kernel.org/stable/c/39c6312009574ca73865354133ca222e7753a71b>
- <https://git.kernel.org/stable/c/e7675f85a92233136c630000a0b7cf97826705da>
- <https://git.kernel.org/stable/c/ec275bf9693d19cc0fdce8436f4c425ced86f6e7>

## Sources

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

---

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