# CVE-2026-23189: ceph: fix NULL pointer dereference in ceph\_mds\_auth\_match()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-02-14T16:27:17.549Z
- **Modified:** 2026-06-17T10:21:03.920Z

## Who should check

- Anyone running Linux \>= 07640d34a781bb2e39020a39137073c03c4aa932, \< c6f8326f26bd20d648d9a55afd68148d1b6afe28; \>= 22c73d52a6d05c5a2053385c0d6cd9984732799d, \< 57b36ffc8881dd455d875f85c105901974af2130; \>= 22c73d52a6d05c5a2053385c0d6cd9984732799d, \< 7987cce375ac8ce98e170a77aa2399f2cf6eb99f; ca3da8b27ab9a0923ad477447cfb8fc7f4b4c523; \>= 6.12.58, \< 6.12.70; \>= 6.17.8, \< 6.18
- Anyone running Linux 6.18

## Description

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

ceph: fix NULL pointer dereference in ceph\_mds\_auth\_match()

The CephFS kernel client has regression starting from 6.18-rc1.
We have issue in ceph\_mds\_auth\_match() if fs\_name == NULL:

    const char fs\_name = mdsc-\>fsc-\>mount\_options-\>mds\_namespace;
    ...
    if (auth-\>match.fs\_name && strcmp(auth-\>match.fs\_name, fs\_name)) {
            / fsname mismatch, try next one \*/
            return 0;
    }

Patrick Donnelly suggested that: In summary, we should definitely start
decoding \`fs\_name\` from the MDSMap and do strict authorizations checks
against it. Note that the \`-o mds\_namespace=foo\` should only be used for
selecting the file system to mount and nothing else. It's possible
no mds\_namespace is specified but the kernel will mount the only
file system that exists which may have name "foo".

This patch reworks ceph\_mdsmap\_decode() and namespace\_equals() with
the goal of supporting the suggested concept. Now struct ceph\_mdsmap
contains m\_fs\_name field that receives copy of extracted FS name
by ceph\_extract\_encoded\_string(). For the case of "old" CephFS file
systems, it is used "cephfs" name.

\[ idryomov: replace redundant %\*pE with %s in ceph\_mdsmap\_decode(),
  get rid of a series of strlen() calls in ceph\_namespace\_match(),
  drop changes to namespace\_equals() body to avoid treating empty
  mds\_namespace as equal, drop changes to ceph\_mdsc\_handle\_fsmap()
  as namespace\_equals() isn't an equivalent substitution there \]

## Affected and fixed versions

- Linux: \>= 07640d34a781bb2e39020a39137073c03c4aa932, \< c6f8326f26bd20d648d9a55afd68148d1b6afe28; \>= 22c73d52a6d05c5a2053385c0d6cd9984732799d, \< 57b36ffc8881dd455d875f85c105901974af2130; \>= 22c73d52a6d05c5a2053385c0d6cd9984732799d, \< 7987cce375ac8ce98e170a77aa2399f2cf6eb99f; ca3da8b27ab9a0923ad477447cfb8fc7f4b4c523; \>= 6.12.58, \< 6.12.70; \>= 6.17.8, \< 6.18 (cvelist)
- Linux: 6.18 (cvelist)

## Mitigation

- Upgrade Linux to 6.18 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-23189.md
Affected: Linux >= 07640d34a781bb2e39020a39137073c03c4aa932, < c6f8326f26bd20d648d9a55afd68148d1b6afe28; >= 22c73d52a6d05c5a2053385c0d6cd9984732799d, < 57b36ffc8881dd455d875f85c105901974af2130; >= 22c73d52a6d05c5a2053385c0d6cd9984732799d, < 7987cce375ac8ce98e170a77aa2399f2cf6eb99f; ca3da8b27ab9a0923ad477447c…
Fixed in: Linux 57b36ffc8881dd455d875f85c105901974af2130, Linux 7987cce375ac8ce98e170a77aa2399f2cf6eb99f, Linux 6.12.70, Linux 6.18

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-23189 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 07640d34a781bb2e39020a39137073c03c4aa932, \< c6f8326f26bd20d648d9a55afd68148d1b6afe28; \>= 22c73d52a6d05c5a2053385c0d6cd9984732799d, \< 57b36ffc8881dd455d875f85c105901974af2130; \>= 22c73d52a6d05c5a2053385c0d6cd9984732799d, \< 7987cce375ac8ce98e170a77aa2399f2cf6eb99f; ca3da8b27ab9a0923ad477447cfb8fc7f4b4c523; \>= 6.12.58, \< 6.12.70; \>= 6.17.8, \< 6.18; Linux 6.18.

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

Yes. Fixed in Linux 57b36ffc8881dd455d875f85c105901974af2130, Linux 7987cce375ac8ce98e170a77aa2399f2cf6eb99f, Linux 6.12.70, Linux 6.18. Upgrade Linux to 6.18 or later.

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

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/c6f8326f26bd20d648d9a55afd68148d1b6afe28>
- patch: <https://git.kernel.org/stable/c/57b36ffc8881dd455d875f85c105901974af2130>
- patch: <https://git.kernel.org/stable/c/7987cce375ac8ce98e170a77aa2399f2cf6eb99f>

## 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-23189>

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