ntfs: fix use-after-free in ntfs_attr_find()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 5330c423b86263ac7883fef0260b9e2229cb531e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ntfs: fix use-after-free in ntfs_attr_find()
Patch series "ntfs: fix bugs about Attribute", v2.
This patchset fixes three bugs relative to Attribute in record:
Patch 1 adds a sanity check to ensure that, attrs_offset field in first mft record loading from disk is within bounds.
Patch 2 moves the ATTR_RECORD's bounds checking earlier, to avoid dereferencing ATTR_RECORD before checking this ATTR_RECORD is within bounds.
Patch 3 adds an overflow checking to avoid possible forever loop in ntfs_attr_find().
Without patch 1 and patch 2, the kernel triggersa KASAN use-after-free detection as reported by Syzkaller.
From the CVE record · Linux
The Linux kernel’s NTFS attribute handling can read freed memory when loading an NTFS filesystem with out-of-bounds attribute metadata. A local mount operation triggered the reported use-after-free; the input does not establish whether an attacker needs authentication or user interaction.
Engineers running Linux kernels with NTFS filesystem support should check their deployments; affected versions are not specified.