Skip to content

perl: fix multiple CVEs

Jaipaul Cheernam openembedded-core 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Added CVE-2025-40909 fix with companion perlcross patch for d_fdopendir configuration detection

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perl: fix CVE-2026-13221meta/recipes-devtools/perl/files/CVE-2026-13221.patch meta/recipes-devtools/perl/perl_5.38.4.bb+76 -01 reply
2/3perl: fix CVE-2026-57432meta/recipes-devtools/perl/files/CVE-2026-57432-01.patch meta/recipes-devtools/perl/files/CVE-2026-57432-02.patch meta/recipes-devtools/perl/perl_5.38.4.bb+88 -00 replies
3/3perl: fix CVE-2025-40909meta/recipes-devtools/perl-cross/files/CVE-2025-40909-dep.patch meta/recipes-devtools/perl-cross/perlcross_1.6.2.bb meta/recipes-devtools/perl/files/CVE-2025-40909.patch +1 more+439 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [scarthgap][PATCH v2 0/3] perl: fix multiple CVEs

Fix three security vulnerabilities in perl 5.38.4:

- CVE-2026-13221: regex trie overflow causing incorrect matches when alternation has more than 65535 fixed string branches (CVSS 9.1)
- CVE-2026-57432: integer overflow in pack/unpack leading to out-of-bounds heap read (CVSS 8.4)
- CVE-2025-40909: threads working directory race condition allowing file operations to target unintended paths

Changes since v1:
- Added CVE-2025-40909 fix with companion perlcross patch for d_fdopendir configuration detection

CVE-2025-40909 is fixed upstream in perl 5.42.0. CVE-2026-13221 and CVE-2026-57432 are fixed upstream in perl 5.44.0.

---

Changes in v2:
- Added companion perlcross patch (CVE-2025-40909-dep) to add d_fdopendir configuration detection required by the CVE fix

Jaipaul Cheernam (3):
perl: fix CVE-2026-13221
perl: fix CVE-2026-57432
perl: fix CVE-2025-40909

 .../perl-cross/files/CVE-2025-40909-dep.patch |  25 ++
 .../perl-cross/perlcross_1.6.2.bb             |   1 +
 .../perl/files/CVE-2025-40909.patch           | 412 ++++++++++++++++++
 .../perl/files/CVE-2026-13221.patch           |  75 ++++
 .../perl/files/CVE-2026-57432-01.patch        |  52 +++
 .../perl/files/CVE-2026-57432-02.patch        |  34 ++
 meta/recipes-devtools/perl/perl_5.38.4.bb     |   4 +
 7 files changed, 603 insertions(+)
 create mode 100644 meta/recipes-devtools/perl-cross/files/CVE-2025-40909-dep.patch
 create mode 100644 meta/recipes-devtools/perl/files/CVE-2025-40909.patch
 create mode 100644 meta/recipes-devtools/perl/files/CVE-2026-13221.patch
 create mode 100644 meta/recipes-devtools/perl/files/CVE-2026-57432-01.patch
 create mode 100644 meta/recipes-devtools/perl/files/CVE-2026-57432-02.patch