nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

Linux-pam: incomplete fix for cve-2025-6020

Open nixpkgs-security-tracker opened this issue 1 year ago • 1 comments

  • CVE-2025-8941
  • Nixpkgs security tracker issue
  • affected package maintainers: cc @jojosch, @sumnerevans, @NetaliDev, @sbourdeauducq, @mkg20001, @traxys, @dotlambda, @gshipunov, @tanneberger, @astro, @SuperSandro2000, @matthewbauer, @aanderse, @h7x4, @lockejan, @Samasaur1, @majiru, @wladmis, @mjm, @ttuegel, @LunNova, @ilya-fedin, @K900, @NickCao, @Kranzes, @XYenon, @peterhoeg, @philandstuff, @lukegb, @thiagokokada, @Flakebi, @Niols, @balsoft, @onny, @oddlama, @norpl, @Pandapip1, @happysalada, @avnik, @globin, @fpletz, @nlewo, @aneeshusa, @LordGrimmauld, @thoughtpolice, @ju1m, @ern775, @Guanran928, @lukego, @nagy, @Uthar, @7c6f434c, @hraban, @qknight, @alyssais

Description

A flaw was found in linux-pam. The pam_namespace module may improperly handle user-controlled paths, allowing local users to exploit symlink attacks and race conditions to elevate their privileges to root. This CVE provides a "complete" fix for CVE-2025-6020.

CVSS CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • CVSS version: 3.1
  • Attack vector (AV): LOCAL
  • Attack complexity (AC): LOW
  • Privileges required (PR): LOW
  • User interaction (UI): NONE
  • Scope (S): UNCHANGED
  • Confidentiality impact (C): HIGH
  • Integrity impact (I): HIGH
  • Availability impact (A): HIGH
Affected packages
  • linux-pam

This is a bit weird: Red Hat product errata RHSA-2025:15099 mentions this has been fixed in pam-1.5.1-26.el9_6. Looking at https://git.rockylinux.org/staging/rpms/pam/-/commit/44aa163026f05df91429ffcae635944264e3e85f it seems the fixing commit upstream is https://github.com/linux-pam/linux-pam/commit/475bd60c552b98c7eddb3270b0b4196847c0072e but it's already the one we cherry-picked in #418180 and #421734

LeSuisse avatar Nov 01 '25 21:11 LeSuisse