SRU: fix parted memory corruption crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
parted (Ubuntu) |
Fix Released
|
Undecided
|
Phillip Susi | ||
Trusty |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Parted, and tools that depend on it like gparted, crash or have other errant behavior due to memory corruption.
[Test Case]
Create a fat16 partition and use gparted to resize it.
[Regression Potential]
Minimal: patch just fixes the code to check for a null pointer and avoid dereferencing it.
[Other Info]
Mike Fleetwood discovered a memory corruption error in parted while investigating a crash report against upstream gparted. The fix has been applied to the upstream parted git repo and needs cherry picked to our parted release in 14.04.
Patch notes:
lib-fs-resize: Prevent crash resizing FAT16 file systems
Resizing FAT16 file system crashes in libparted/
create_
fs_
Only FAT32 file systems have info_sector populated by fat_open() ->
fat_
info_sector so pointer fs_info-
fat_alloc(). When resizing a FAT file system create_
was always dereferencing fs_info-
info_sector, hence it crashed for FAT12 and FAT16.
Make create_
systems.
Reported by Christian Hesse in
https:/
affects: | gparted (Ubuntu) → parted (Ubuntu) |
Changed in parted (Ubuntu): | |
assignee: | nobody → Phillip Susi (psusi) |
status: | Confirmed → In Progress |
summary: |
- `malloc(): corrupted unsorted chunks 2` after copying data from hfsplus - partition with cp + SRU: fix parted memory corruption crash |
description: | updated |
tags: | added: trusty |
Status changed to 'Confirmed' because the bug affects multiple users.