Bug 2369407 (CVE-2025-40909) - CVE-2025-40909 perl: Perl threads have a working directory race condition where file operations may target unintended paths
Summary: CVE-2025-40909 perl: Perl threads have a working directory race condition whe...
Keywords:
Status: NEW
Alias: CVE-2025-40909
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2369462 2369463
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-30 13:01 UTC by OSIDB Bzimport
Modified: 2025-09-10 02:41 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2025:12071 0 None None None 2025-07-29 10:30:01 UTC
Red Hat Product Errata RHSA-2025:11545 0 None None None 2025-07-22 18:17:41 UTC
Red Hat Product Errata RHSA-2025:11804 0 None None None 2025-07-28 02:23:45 UTC
Red Hat Product Errata RHSA-2025:11805 0 None None None 2025-07-28 02:13:49 UTC
Red Hat Product Errata RHSA-2025:12056 0 None None None 2025-07-29 08:48:35 UTC

Description OSIDB Bzimport 2025-05-30 13:01:12 UTC
Perl threads have a working directory race condition where file operations may target unintended paths.

If a directory handle is open at thread creation, the process-wide current working directory is temporarily changed in order to clone that handle for the new thread, which is visible from any third (or more) thread already running. 

This may lead to unintended operations such as loading code or accessing files from unexpected locations, which a local attacker may be able to exploit.

The bug was introduced in commit 11a11ecf4bea72b17d250cfb43c897be1341861e and released in Perl version 5.13.6

Comment 2 errata-xmlrpc 2025-07-22 18:17:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:11545 https://access.redhat.com/errata/RHSA-2025:11545

Comment 3 errata-xmlrpc 2025-07-28 02:13:47 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:11805 https://access.redhat.com/errata/RHSA-2025:11805

Comment 4 errata-xmlrpc 2025-07-28 02:23:43 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:11804 https://access.redhat.com/errata/RHSA-2025:11804

Comment 5 errata-xmlrpc 2025-07-29 08:48:33 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2025:12056 https://access.redhat.com/errata/RHSA-2025:12056


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