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

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

- **Severity:** Medium 5.5 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`)
- **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:** Yes
- **Published:** 6 Feb 2024
- **Updated:** 15 Oct 2026
- **Also known as:** ALPINE-CVE-2024-22365, ALSA-2024:2438, ALSA-2024:3163, AZL-34156, AZL-35100, BELL-CVE-2024-22365, CLEANSTART-2024-IO65114, CLSA-2024-1712671933, CLSA-2024-1713333823, CLSA-2024-1718202007, CLSA-2024-1718796961, CLSA-2024-1719569368, DEBIAN-CVE-2024-22365, ECHO-d2cb-5160-7eb5, GHSA-pcmw-6hxc-hqmx, MGASA-2024-0030, OESA-2024-1096, OESA-2024-1129, OESA-2024-1130, RHSA-2024:2438, RHSA-2024:3163, RLSA-2024:3163, ROOT-OS-ALPINE-318-CVE-2024-22365, ROOT-OS-ALPINE-319-CVE-2024-22365, SUSE-SU-2024:0136-1, SUSE-SU-2024:0136-2, SUSE-SU-2024:0137-1, UBUNTU-CVE-2024-22365, USN-6588-1, USN-6588-2, openSUSE-SU-2024:13616-1

## 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 (Improper Control of a Resource Through its Lifetime)

## Which versions are affected by CVE-2024-22365?

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `pam` | AlmaLinux:8 | All versions | 1.3.1-33.el8 |
| `pam-devel` | AlmaLinux:8 | All versions | 1.3.1-33.el8 |
| `pam` | AlmaLinux:9 | All versions | 1.5.1-19.el9 |
| `pam-devel` | AlmaLinux:9 | All versions | 1.5.1-19.el9 |
| `pam-docs` | AlmaLinux:9 | All versions | 1.5.1-19.el9 |
| `pam` | Red Hat:enterprise_linux:8::baseos | All versions | 0:1.3.1-33.el8 |
| `pam-debuginfo` | Red Hat:enterprise_linux:8::baseos | All versions | 0:1.3.1-33.el8 |
| `pam-debugsource` | Red Hat:enterprise_linux:8::baseos | All versions | 0:1.3.1-33.el8 |
| `pam-devel` | Red Hat:enterprise_linux:8::baseos | All versions | 0:1.3.1-33.el8 |
| `pam-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:1.5.1-19.el9 |
| `pam-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:1.5.1-19.el9 |
| `pam-devel` | Red Hat:enterprise_linux:9::appstream | All versions | 0:1.5.1-19.el9 |
| `pam-docs` | Red Hat:enterprise_linux:9::appstream | All versions | 0:1.5.1-19.el9 |
| `pam` | Red Hat:enterprise_linux:9::baseos | All versions | 0:1.5.1-19.el9 |
| `pam-debuginfo` | Red Hat:enterprise_linux:9::baseos | All versions | 0:1.5.1-19.el9 |
| `pam-debugsource` | Red Hat:enterprise_linux:9::baseos | All versions | 0:1.5.1-19.el9 |
| `pam` | Rocky Linux:8 | All versions | 0:1.3.1-33.el8 |
| `pam` | SUSE:Enterprise Storage 7.1 | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise Micro 5.1 | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise Micro 5.2 | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise Micro 5.3 | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise Micro 5.4 | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise Micro 5.5 | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise Micro 5.5 | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise Module for Basesystem 15 SP5 | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise Module for Development Tools 15 SP5 | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise Real Time 15 SP4 | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise Server 12 SP5 | All versions | 1.1.8-24.56.1 |
| `pam` | SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 1.3.0-150000.6.66.1 |
| `pam` | SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 1.1.8-24.56.1 |
| `pam` | SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 1.3.0-150000.6.66.1 |

Products: Linux-Pam Linux-Pam.

## How do I fix CVE-2024-22365?

Upgrade to a fixed version.

## Is CVE-2024-22365 being exploited?

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

## Other vulnerabilities in n/a

- [CVE-2022-28321](https://insights.sbomify.com/CVE-2022-28321/): Auth bypass in n/a (critical 9.8)
- [CVE-2020-27780](https://insights.sbomify.com/CVE-2020-27780/): Auth bypass in pam (critical 9.8)
- [CVE-2010-4708](https://insights.sbomify.com/CVE-2010-4708/): Privilege escalation in n/a (high 7.2)
- [CVE-2010-3853](https://insights.sbomify.com/CVE-2010-3853/): Privilege escalation in n/a (medium 6.9)
- [CVE-2009-0887](https://insights.sbomify.com/CVE-2009-0887/): Integer overflow in n/a (medium 6.6)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-22365 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2024-22365 in the wild and no public exploit code.

Affected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-22365/ (Markdown: https://insights.sbomify.com/CVE-2024-22365/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-22365
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-22365
- OSV: https://osv.dev/vulnerability/CVE-2024-22365

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-22365/
Summaries are generated and may contain mistakes; the official description above is the record.
