CVE-2024-22365 Denial of service in n/a

Medium 5.5 Published Updated

Attackers can cause a denial of service by blocking login processes via a race condition in Linux PAM's directory protection mechanism.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-22365?

CVE-2024-22365 is a medium-severity denial of service vulnerability in n/a, published on 6 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

linux-pam (aka Linux PAM) before 1.6.0 allows attackers to cause a denial of service (blocked login process) via mkfifo because the openat call (for protect_dir) lacks O_DIRECTORY.

Weakness: CWE-664

Which versions are affected by CVE-2024-22365?

It affects 1 product.

Linux distribution packages (40)
pam AlmaLinux:8All versions1.3.1-33.el8
pam-devel AlmaLinux:8All versions1.3.1-33.el8
pam AlmaLinux:9All versions1.5.1-19.el9
pam-devel AlmaLinux:9All versions1.5.1-19.el9
pam-docs AlmaLinux:9All versions1.5.1-19.el9
pam Red Hat:enterprise_linux:8::baseosAll versions0:1.3.1-33.el8
pam-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:1.3.1-33.el8
pam-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:1.3.1-33.el8
pam-devel Red Hat:enterprise_linux:8::baseosAll versions0:1.3.1-33.el8
pam-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:1.5.1-19.el9
pam-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:1.5.1-19.el9
pam-devel Red Hat:enterprise_linux:9::appstreamAll versions0:1.5.1-19.el9
pam-docs Red Hat:enterprise_linux:9::appstreamAll versions0:1.5.1-19.el9
pam Red Hat:enterprise_linux:9::baseosAll versions0:1.5.1-19.el9
pam-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:1.5.1-19.el9
pam-debugsource Red Hat:enterprise_linux:9::baseosAll versions0:1.5.1-19.el9
pam Rocky Linux:8All versions0:1.3.1-33.el8
pam SUSE:Enterprise Storage 7.1All versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise Micro 5.1All versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise Micro 5.2All versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise Micro 5.3All versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise Micro 5.4All versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise Micro 5.5All versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise Micro 5.5All versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise Module for Basesystem 15 SP5All versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise Module for Development Tools 15 SP5All versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise Real Time 15 SP4All versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise Server 12 SP5All versions1.1.8-24.56.1
pam SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions1.3.0-150000.6.66.1
pam SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions1.1.8-24.56.1
pam SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions1.3.0-150000.6.66.1

Products include Linux-Pam Linux-Pam.

How do I fix CVE-2024-22365?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-22365 being exploited?

There is no known exploitation of CVE-2024-22365 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2024-22365, ALSA-2024:2438, ALSA-2024:3163, AZL-34156, AZL-35100, BELL-CVE-2024-22365 and 25 more.

Is CVE-2024-22365 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free