Skip to content

libfdisk: add fuzzer target and fix memory leak in read_pte()#4428

Merged
karelzak merged 3 commits into
util-linux:masterfrom
karelzak:PR/libfdisk-fuzz-memleak
Jun 17, 2026
Merged

libfdisk: add fuzzer target and fix memory leak in read_pte()#4428
karelzak merged 3 commits into
util-linux:masterfrom
karelzak:PR/libfdisk-fuzz-memleak

Conversation

@karelzak

Copy link
Copy Markdown
Collaborator

Summary

  • Merge OSS-Fuzz fdisk fuzzer target from OSS-Fuzz: Add new fuzzer targets fdisk cmd #4423
  • Fix memory leak in read_pte() error path — don't assign the sector buffer to the partition table entry until read_sector() succeeds; on failure, free the buffer immediately

arthurscchan and others added 3 commits June 15, 2026 16:47
Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
… into PR/libfdisk-fuzz-memleak

* 'new-fuzzer' of https://github.com/arthurscchan/util-linux:
  OSS-Fuzz: Add new fuzzer targets fdisk cmd
Don't assign the sector buffer to the partition table entry until
read_sector() succeeds. On failure, free the buffer immediately
instead of leaving it in a partially initialized pte.

Addresses: util-linux#4423
Signed-off-by: Karel Zak <kzak@redhat.com>
@karelzak karelzak merged commit c86a60b into util-linux:master Jun 17, 2026
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants