fs/ntfs3: Fix an NULL dereference bug
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
On 32-bit systems, an integer overflow while fs/ntfs3 loads an NTFS attribute list can lead to a NULL pointer dereference and kernel crash. The input does not specify how an attacker could trigger it or whether authentication or user interaction is required.
Engineers running the Linux kernel on 32-bit systems should check whether their kernel includes the fs/ntfs3 fix; affected versions were not provided.