# CVE-2026-22991: libceph: make free\_choose\_arg\_map() resilient to partial allocation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.63% (percentile 45, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2026-01-23T15:24:12.191Z
- **Modified:** 2026-10-19T19:17:30.783Z

## Who should check

- Anyone running Linux \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< 9b3730dabcf3764bfe3ff07caf55e641a0b45234; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< 851241d3f78a5505224dc21c03d8692f530256b4; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< ec1850f663da64842614c86b20fe734be070c2ba; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< 8081faaf089db5280c3be820948469f7c58ef8dd; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< c4c2152a858c0ce4d2bff6ca8c1d5b0ef9f2cbdf; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< f21c3fdb96833aac2f533506899fe38c19cf49d5; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< e3fe30e57649c551757a02e1cad073c47e1e075e
- Anyone running Linux 4.13

## Description

In the Linux kernel, the following vulnerability has been resolved:

libceph: make free\_choose\_arg\_map() resilient to partial allocation

free\_choose\_arg\_map() may dereference a NULL pointer if its caller fails
after a partial allocation.

For example, in decode\_choose\_args(), if allocation of arg\_map-\>args
fails, execution jumps to the fail label and free\_choose\_arg\_map() is
called. Since arg\_map-\>size is updated to a non-zero value before memory
allocation, free\_choose\_arg\_map() will iterate over arg\_map-\>args and
dereference a NULL pointer.

To prevent this potential NULL pointer dereference and make
free\_choose\_arg\_map() more resilient, add checks for pointers before
iterating.

## Affected and fixed versions

- Linux: \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< 9b3730dabcf3764bfe3ff07caf55e641a0b45234; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< 851241d3f78a5505224dc21c03d8692f530256b4; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< ec1850f663da64842614c86b20fe734be070c2ba; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< 8081faaf089db5280c3be820948469f7c58ef8dd; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< c4c2152a858c0ce4d2bff6ca8c1d5b0ef9f2cbdf; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< f21c3fdb96833aac2f533506899fe38c19cf49d5; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< e3fe30e57649c551757a02e1cad073c47e1e075e (cvelist)
- Linux: 4.13 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-22991. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-22991.md
Affected: Linux >= 5cf9c4a9959b6273675310d14a834ef14fbca37c, < 9b3730dabcf3764bfe3ff07caf55e641a0b45234; >= 5cf9c4a9959b6273675310d14a834ef14fbca37c, < 851241d3f78a5505224dc21c03d8692f530256b4; >= 5cf9c4a9959b6273675310d14a834ef14fbca37c, < ec1850f663da64842614c86b20fe734be070c2ba; >= 5cf9c4a9959b6273675310d…
Fixed in: Linux 9b3730dabcf3764bfe3ff07caf55e641a0b45234, Linux 851241d3f78a5505224dc21c03d8692f530256b4, Linux 8081faaf089db5280c3be820948469f7c58ef8dd

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-22991 being exploited?

There is no confirmed exploitation: CVE-2026-22991 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.63% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-22991?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-22991?

Linux \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< 9b3730dabcf3764bfe3ff07caf55e641a0b45234; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< 851241d3f78a5505224dc21c03d8692f530256b4; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< ec1850f663da64842614c86b20fe734be070c2ba; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< 8081faaf089db5280c3be820948469f7c58ef8dd; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< c4c2152a858c0ce4d2bff6ca8c1d5b0ef9f2cbdf; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< f21c3fdb96833aac2f533506899fe38c19cf49d5; \>= 5cf9c4a9959b6273675310d14a834ef14fbca37c, \< e3fe30e57649c551757a02e1cad073c47e1e075e; Linux 4.13.

### Is there a fix for CVE-2026-22991?

Yes. Fixed in Linux 9b3730dabcf3764bfe3ff07caf55e641a0b45234, Linux 851241d3f78a5505224dc21c03d8692f530256b4, Linux 8081faaf089db5280c3be820948469f7c58ef8dd. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-22991?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9b3730dabcf3764bfe3ff07caf55e641a0b45234>
- patch: <https://git.kernel.org/stable/c/851241d3f78a5505224dc21c03d8692f530256b4>
- patch: <https://git.kernel.org/stable/c/ec1850f663da64842614c86b20fe734be070c2ba>
- patch: <https://git.kernel.org/stable/c/8081faaf089db5280c3be820948469f7c58ef8dd>
- patch: <https://git.kernel.org/stable/c/c4c2152a858c0ce4d2bff6ca8c1d5b0ef9f2cbdf>
- patch: <https://git.kernel.org/stable/c/f21c3fdb96833aac2f533506899fe38c19cf49d5>
- patch: <https://git.kernel.org/stable/c/e3fe30e57649c551757a02e1cad073c47e1e075e>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-22991>

HTML: <https://flawdb.com/CVE-2026-22991> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-22991>
