# CVE-2016-5009: Denial of service in n/a

> Remote authenticated users can crash the Ceph monitor service by sending empty or crafted command prefixes, causing a denial of service.

- **Severity:** Medium 6.5 (`CVSS:3.0/AV:N/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:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 12 Jul 2016
- **Updated:** 6 Aug 2024
- **Also known as:** DEBIAN-CVE-2016-5009, GHSA-72p6-9489-jc3f, RHSA-2016:1384, SUSE-SU-2016:2809-1, SUSE-SU-2017:0367-1, UBUNTU-CVE-2016-5009

## What is CVE-2016-5009?

CVE-2016-5009 is a medium-severity denial of service vulnerability in Redhat Enterprise Linux Desktop, published on 12 Jul 2016. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

The handle_command function in mon/Monitor.cc in Ceph allows remote authenticated users to cause a denial of service (segmentation fault and ceph monitor crash) via an (1) empty or (2) crafted prefix.

Weakness: CWE-20 (Improper Input Validation)

## Which versions are affected by CVE-2016-5009?

It affects 7 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `ceph` | Red Hat:ceph_storage:1.3::el7 | All versions | 1:0.94.5-14.el7cp |
| `ceph-common` | Red Hat:ceph_storage:1.3::el7 | All versions | 1:0.94.5-14.el7cp |
| `ceph-debuginfo` | Red Hat:ceph_storage:1.3::el7 | All versions | 1:0.94.5-14.el7cp |
| `ceph-mon` | Red Hat:ceph_storage:1.3::el7 | All versions | 1:0.94.5-14.el7cp |
| `ceph-osd` | Red Hat:ceph_storage:1.3::el7 | All versions | 1:0.94.5-14.el7cp |
| `ceph-radosgw` | Red Hat:ceph_storage:1.3::el7 | All versions | 1:0.94.5-14.el7cp |
| `ceph-selinux` | Red Hat:ceph_storage:1.3::el7 | All versions | 1:0.94.5-14.el7cp |
| `ceph-test` | Red Hat:ceph_storage:1.3::el7 | All versions | 1:0.94.5-14.el7cp |
| `librados2` | Red Hat:ceph_storage:1.3::el7 | All versions | 1:0.94.5-14.el7cp |
| `librados2-devel` | Red Hat:ceph_storage:1.3::el7 | All versions | 1:0.94.5-14.el7cp |
| `librbd1` | Red Hat:ceph_storage:1.3::el7 | All versions | 1:0.94.5-14.el7cp |
| `librbd1-devel` | Red Hat:ceph_storage:1.3::el7 | All versions | 1:0.94.5-14.el7cp |
| `python-rados` | Red Hat:ceph_storage:1.3::el7 | All versions | 1:0.94.5-14.el7cp |
| `python-rbd` | Red Hat:ceph_storage:1.3::el7 | All versions | 1:0.94.5-14.el7cp |
| `ceph` | SUSE:Enterprise Storage 3 | All versions | 10.2.3+git.1475228057.755cf99-7.3 |
| `ceph` | SUSE:Linux Enterprise Desktop 12 SP2 | All versions | 10.2.4+git.1481215985.12b091b-16.2 |
| `ceph` | SUSE:Linux Enterprise Server 12 SP2 | All versions | 10.2.4+git.1481215985.12b091b-16.2 |
| `ceph` | SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | All versions | 10.2.4+git.1481215985.12b091b-16.2 |
| `ceph` | SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | All versions | 10.2.4+git.1481215985.12b091b-16.2 |
| `ceph` | SUSE:Linux Enterprise Software Development Kit 12 SP2 | All versions | 10.2.4+git.1481215985.12b091b-16.2 |

Products: Redhat Ceph, Redhat Ceph Storage Mon, Redhat Ceph Storage Osd, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux for Scientific Computing, Redhat Enterprise Linux Server, Redhat Enterprise Linux Workstation.

## How do I fix CVE-2016-5009?

Apply the vendor's patch.

## Is CVE-2016-5009 being exploited?

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

## Other vulnerabilities in Redhat Enterprise Linux Desktop

- [CVE-2022-3650](https://insights.sbomify.com/CVE-2022-3650/): Privilege escalation in Ceph (high 7.8)
- [CVE-2024-47866](https://insights.sbomify.com/CVE-2024-47866/): RGW DoS attack with empty HTTP header in S3 object copy (high 7.5)
- [CVE-2016-8626](https://insights.sbomify.com/CVE-2016-8626/): Denial of service in Ceph (medium 6.5)
- [CVE-2018-16889](https://insights.sbomify.com/CVE-2018-16889/): Information disclosure in ceph (medium 5.5)
- [CVE-2020-27839](https://insights.sbomify.com/CVE-2020-27839/): Information disclosure in ceph-dashboard (medium 5.4)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2016-5009 and fix it if it is affected.

What it is: CVE-2016-5009 is a medium-severity denial of service vulnerability in Redhat Enterprise Linux Desktop, published on 12 Jul 2016. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2016-5009 in the wild and no public exploit code.

Affected product: Redhat Enterprise Linux Desktop. 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-2016-5009/ (Markdown: https://insights.sbomify.com/CVE-2016-5009/index.md)
```

## Sources

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

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