elf: Ignore LD_LIBRARY_PATH and debug env var for setuid for static
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 6 Nov 2023 20:25:49 +0000 (17:25 -0300)
committerSean Whitton <spwhitton@spwhitton.name>
Tue, 27 May 2025 10:40:04 +0000 (11:40 +0100)
commit36b76b9ecd5c6b0b102cc5c1361623358401d2ed
tree017226a22dc22cae7e57c0c4e0faaacf8ec0c8f5
parentf7e3a55c6cfec5b0d2ba9f3ccb88187c460ad205
elf: Ignore LD_LIBRARY_PATH and debug env var for setuid for static

It mimics the ld.so behavior.

Checked on x86_64-linux-gnu.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit 5451fa962cd0a90a0e2ec1d8910a559ace02bba0)

Gbp-Pq: Topic any
Gbp-Pq: Name local-CVE-2025-4802-3.diff
elf/dl-support.c