Skip to content

erofs-utils: lib/tar: fix PAX header parsing issues

Utkal Singh linux-erofs 3 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 4 repliesIn review
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Add base64-encoded reproducers to both commit messages

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2erofs-utils: lib/tar: skip PAX entries with empty pathlib/tar.c+2 -02 replies
2/2erofs-utils: lib/tar: reject negative size= value in PAX headerlib/tar.c+5 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] erofs-utils: lib/tar: fix PAX header parsing issues

These two patches fix input validation bugs in the PAX extended header parser in lib/tar.c that can trigger crashes on malformed or crafted tar archives.

Changes in v3:
- Add base64-encoded reproducers to both commit messages

Changes in v2:
- Fix mixed indentation in patch 2/2 (use tabs, not spaces)

Utkal Singh (2):
erofs-utils: lib/tar: skip PAX entries with empty path
erofs-utils: lib/tar: reject negative size= value in PAX header

 lib/tar.c | 7 +++++++
 1 file changed, 7 insertions(+)
Signature · 1 line
2.43.0