From: Zhan Xusheng <zhanxusheng1024@gmail.com>
To: Gao Xiang <hsiangkao@linux.alibaba.com>
Cc: linux-erofs@lists.ozlabs.org, Zhan Xusheng <zhanxusheng@xiaomi.com>
Subject: [PATCH erofs-utils 0/2] tar: fix parsing issues for pax and GNU extensions
Date: Tue, 14 Apr 2026 22:13:11 +0800 [thread overview]
Message-ID: <20260414141313.46575-1-zhanxusheng@xiaomi.com> (raw)
This series fixes two issues in tar parsing:
- An out-of-bounds access when trimming PAX path entries
- Missing NULL pointer checks when handling GNU long name/link records
These issues can be triggered by malformed tar archives and may lead
to crashes. The fixes improve robustness when processing untrusted
inputs.
Zhan Xusheng (2):
erofs-utils: tar: fix out-of-bounds access when trimming pax path
erofs-utils: tar: add missing NULL checks for GNU long name/link
lib/tar.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
--
2.43.0
next reply other threads:[~2026-04-14 14:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-14 14:13 Zhan Xusheng [this message]
2026-04-14 14:13 ` [PATCH 1/2] erofs-utils: tar: fix out-of-bounds access when trimming pax path Zhan Xusheng
2026-04-14 14:19 ` Gao Xiang
2026-04-14 14:46 ` [PATCH erofs-utils 0/2] tar: fix parsing issues for pax and GNU extensions Zhan Xusheng
2026-04-14 14:49 ` Gao Xiang
2026-04-14 14:55 ` Zhan Xusheng
2026-04-14 14:13 ` [PATCH 2/2] erofs-utils: tar: add missing NULL checks for GNU long name/link Zhan Xusheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260414141313.46575-1-zhanxusheng@xiaomi.com \
--to=zhanxusheng1024@gmail.com \
--cc=hsiangkao@linux.alibaba.com \
--cc=linux-erofs@lists.ozlabs.org \
--cc=zhanxusheng@xiaomi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox