CVE-2024-22365
published 2024-02-06CVE-2024-22365: 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…
PriorityP419medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.46%
36.9th percentile
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.
Affected
14 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | pam | < pam 1.5.2-6+deb12u2 (bookworm) | pam 1.5.2-6+deb12u2 (bookworm) |
| linux-pam | linux-pam | < 1.6.0 | 1.6.0 |
| msrc | azl3_pam_1.5.3-2_on_azure_linux_3.0 | — | — |
| msrc | azl3_pam_1.5.3-4_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| msrc | cbl2_pam_1.5.1-6_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_pam_1.5.1-7_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| pam | pam | >= 0 < 1.4.0-9+deb11u2 | 1.4.0-9+deb11u2 |
| pam | pam | >= 0 < 1.5.2-6+deb12u2 | 1.5.2-6+deb12u2 |
| pam | pam | >= 0 < 1.5.3-4 | 1.5.3-4 |
| pam | pam | >= 0 < 1.5.3-4 | 1.5.3-4 |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_debian5.5MEDIUM
vendor_msrc5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
PAM vulnerability
vendor_ubuntu·2024-03-26
CVE-2024-22365 PAM vulnerability
Title: PAM vulnerability
Summary: PAM could be made to stop responding if it opened a specially crafted file.
USN-6588-1 fixed a vulnerability in PAM. This update
provides the corresponding updates for Ubuntu 14.04 LTS,
Ubuntu 16.04 LTS, and Ubuntu 18.04 LTS.
Original advisory details:
Matthias Gerstner discovered that the PAM pam_namespace module incorrectly
handled special files when performing directory checks. A local attacker
could possibly use this issue to cause PAM to stop responding, resulting in
a denial of service.
Instructions: In general, a standard system update will make all the necessary changes.
Microsoft
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.
vendor_msrc·2024-02-13·CVSS 5.5
CVE-2024-22365 [MEDIUM] 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.
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this
Red Hat
pam: allowing unprivileged user to block another user namespace
vendor_redhat·2024-01-18·CVSS 5.5
CVE-2024-22365 [MEDIUM] CWE-277 pam: allowing unprivileged user to block another user namespace
pam: allowing unprivileged user to block another user namespace
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.
A vulnerability was found in Linux PAM. An unprivileged user that is not yet in a corresponding mount namespace with ~/tmp mounted as a polyinstantiated dir can place a FIFO there, and a subsequent attempt to login as this user with `pam_namespace` configured will cause the `openat()` in `protect_dir()` to block the attempt, causing a local denial of service.
Statement: Red Hat rates this as Moderate, as this vulnerability needs a non-default configuration in order to be explored by a malicious user. Also, the attack is local and the Denial of Se
Ubuntu
PAM vulnerability
vendor_ubuntu·2024-01-17
CVE-2024-22365 PAM vulnerability
Title: PAM vulnerability
Summary: PAM could be made to stop responding if it opened a specially crafted file.
Matthias Gerstner discovered that the PAM pam_namespace module incorrectly
handled special files when performing directory checks. A local attacker
could possibly use this issue to cause PAM to stop responding, resulting in
a denial of service.
Instructions: In general, a standard system update will make all the necessary changes.
Debian
CVE-2024-22365: pam - linux-pam (aka Linux PAM) before 1.6.0 allows attackers to cause a denial of ser...
vendor_debian·2024·CVSS 5.5
CVE-2024-22365 [MEDIUM] CVE-2024-22365: pam - linux-pam (aka Linux PAM) before 1.6.0 allows attackers to cause a denial of ser...
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.
Scope: local
bookworm: resolved (fixed in 1.5.2-6+deb12u2)
bullseye: resolved (fixed in 1.4.0-9+deb11u2)
forky: resolved (fixed in 1.5.3-4)
sid: resolved (fixed in 1.5.3-4)
trixie: resolved (fixed in 1.5.3-4)
GHSA
GHSA-pcmw-6hxc-hqmx: linux-pam (aka Linux PAM) before 1
ghsa_unreviewed·2024-02-06
CVE-2024-22365 [MEDIUM] CWE-664 GHSA-pcmw-6hxc-hqmx: linux-pam (aka Linux PAM) before 1
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.
OSV
CVE-2024-22365: linux-pam (aka Linux PAM) before 1
osv·2024-02-06·CVSS 5.5
CVE-2024-22365 [MEDIUM] CVE-2024-22365: linux-pam (aka Linux PAM) before 1
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
http://www.openwall.com/lists/oss-security/2024/01/18/3https://github.com/linux-pam/linux-pamhttps://github.com/linux-pam/linux-pam/commit/031bb5a5d0d950253b68138b498dc93be69a64cbhttps://github.com/linux-pam/linux-pam/releases/tag/v1.6.0http://www.openwall.com/lists/oss-security/2024/01/18/3https://github.com/linux-pam/linux-pamhttps://github.com/linux-pam/linux-pam/commit/031bb5a5d0d950253b68138b498dc93be69a64cbhttps://github.com/linux-pam/linux-pam/releases/tag/v1.6.0https://lists.debian.org/debian-lts-announce/2025/09/msg00021.htmlhttps://cert-portal.siemens.com/productcert/html/ssa-577017.htmlhttps://cert-portal.siemens.com/productcert/html/ssa-794697.html
2024-02-06
Published