Bug 199347
Summary: | buffer overflow in ext4_xattr_set_entry() when mounting and operating a crafted ext4 image | ||
---|---|---|---|
Product: | File System | Reporter: | Wen Xu (wen.xu) |
Component: | ext4 | Assignee: | fs_ext4 (fs_ext4) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | carnil, MohammadRasoulFarajollahi, tytso, wen.xu |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.15, 4.16, 4.17 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
The crafted image which causes overflow
poc.c ext4: correctly handle a zero-length xattr with a non-zero e_value_offs |
Description
Wen Xu
2018-04-11 03:01:15 UTC
Created attachment 275285 [details]
poc.c
Reported by Wen Xu from SSLab, Gatech. The issue still exists in 4.17-rc2 so far. Created attachment 276147 [details]
ext4: correctly handle a zero-length xattr with a non-zero e_value_offs
This patch should address the problem.
A CVE number has been assigned for this: CVE-2018-10840 Many thanks for your response, Ted! Comment on attachment 275283 [details]
The crafted image which causes overflow
file:///home/mrfarajollahi/Downloads/2(1).img
|