Bug 2432405 - glibc: Ignore LD_PROFILE if LD_PROFILE_OUTPUT is not set
Summary: glibc: Ignore LD_PROFILE if LD_PROFILE_OUTPUT is not set
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 42
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-01-23 16:24 UTC by Florian Weimer
Modified: 2026-01-27 04:53 UTC (History)
14 users (show)

Fixed In Version: glibc-2.41-16.fc42 glibc-2.42-9.fc43
Clone Of:
Environment:
Last Closed: 2026-01-27 04:53:23 UTC
Type: ---
Embargoed:
fweimer: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-2996 0 None None None 2026-01-23 16:28:04 UTC
Sourceware 33797 0 P2 NEW elf: Out-of-bounds write in ld.so profiling via unvalidated self_pc 2026-01-23 16:26:01 UTC

Description Florian Weimer 2026-01-23 16:24:30 UTC
Backport this upstream patch:

commit 7b543dcdf97d07fd4346feb17916e08fe83ad0ae
Author: Florian Weimer <fweimer>
Date:   Thu Jan 15 22:29:46 2026 +0100

    elf: Ignore LD_PROFILE if LD_PROFILE_OUTPUT is not set (bug 33797)
    
    The previous default for LD_PROFILE_OUTPUT, /var/tmp, is insecure
    because it's typically a 1777 directory, and other systems could
    place malicious files there which interfere with execution.
    
    Requiring the user to specify a profiling directory mitigates
    the impact of bug 33797.  Clear LD_PROFILE_OUTPUT alongside
    with LD_PROFILE.
    
    Rework the test not to use predictable file names.
    
    Reviewed-by: Carlos O'Donell <carlos>


Reproducible: Always

Comment 1 Fedora Update System 2026-01-24 09:21:32 UTC
FEDORA-2026-205d532069 (glibc-2.42-9.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-205d532069

Comment 2 Fedora Update System 2026-01-25 01:50:03 UTC
FEDORA-2026-205d532069 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-205d532069`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-205d532069

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2026-01-27 04:53:23 UTC
FEDORA-2026-205d532069 (glibc-2.42-9.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.