fs/ntfs3: Fix a possible null-pointer dereference in ni_clear()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 20f9bfc664d6a478f9a5bbc0c380f80f7a1a06c6, Kernel 39c6312009574ca73865354133ca222e7753a71b, Kernel e7675f85a92233136c630000a0b7cf97826705da and 1 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.15, >=4342306f0f0d5ff4315a204d315c1b51b914fca5 <20f9bfc664d6a478f9a5bbc0c380f80f7a1a06c6, >=4342306f0f0d5ff4315a204d315c1b51b914fca5 <39c6312009574ca73865354133ca222e7753a71b, >=4342306f0f0d5ff4315a204d315c1b51b914fca5 <e7675f85a92233136c630000a0b7cf97826705da, >=4342306f0f0d5ff4315a204d315c1b51b914fca5 <ec275bf9693d19cc0fdce8436f4c425ced86f6e7 | 20f9bfc664d6a478f9a5bbc0c380f80f7a1a06c6, 39c6312009574ca73865354133ca222e7753a71b, e7675f85a92233136c630000a0b7cf97826705da, ec275bf9693d19cc0fdce8436f4c425ced86f6e7 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket