diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-11-02 20:47:51 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-11-02 22:50:10 +0900 |
| commit | 99afbf38a5c571157526b7b1c6d8dd7ad1a234d5 (patch) | |
| tree | da8be543c7667707066188061f29822821cfcd97 /scripts/Makefile.thinlto | |
| parent | 564c7753647731d19170914c1c637d3b33d88d3b (diff) | |
| download | linux-next-99afbf38a5c571157526b7b1c6d8dd7ad1a234d5.tar.gz linux-next-99afbf38a5c571157526b7b1c6d8dd7ad1a234d5.zip | |
ntfs: don't allow resident values to overlap the attribute header
The resident value bounds check allows value_offset to point inside the
attribute header. The reported image has an unnamed $DATA attribute with
a value_offset of zero and a value_length of two, which passes lookup.
Appending to this file makes ntfs_resident_attr_value_resize() shrink the
attribute record to eight bytes. Moving the following attributes then
overwrites the resident header fields, so the subsequent memset() uses a
corrupted value_offset and writes outside the MFT record buffer.
Require the resident value to start after the complete resident header.
Both lookup paths then return -EIO for the corrupt record, before callers
can resize or access its value.
Fixes: 495e90fa3348 ("ntfs: update attrib operations")
Reported-by: Robert Morris <rtm@mit.edu>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
