# CVE-2023-53246: cifs: fix DFS traversal oops without CONFIG\_CIFS\_DFS\_UPCALL

> 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.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-09-15T14:46:15.977Z
- **Modified:** 2026-06-17T06:44:37.347Z

## Who should check

- Anyone running Linux \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< 26a32a212bc540f4773cd6af8cf73e967d72569c; \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< b64305185b76f1d5145ce594ff48f3f0e70695bd; \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< b7d854c33ab48e55fc233699bbefe39ec9bb5c05; \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< 1e144b68208e98fd4602c842a7149ba5f41d87fb; \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< 179a88a8558bbf42991d361595281f3e45d7edfc
- Anyone running Linux 5.7

## Description

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

cifs: fix DFS traversal oops without CONFIG\_CIFS\_DFS\_UPCALL

When compiled with CONFIG\_CIFS\_DFS\_UPCALL disabled, cifs\_dfs\_d\_automount
is NULL. cifs.ko logic for mapping CIFS\_FATTR\_DFS\_REFERRAL attributes to
S\_AUTOMOUNT and corresponding dentry flags is retained regardless of
CONFIG\_CIFS\_DFS\_UPCALL, leading to a NULL pointer dereference in
VFS follow\_automount() when traversing a DFS referral link:
  BUG: kernel NULL pointer dereference, address: 0000000000000000
  ...
  Call Trace:
   \<TASK\>
   \_\_traverse\_mounts+0xb5/0x220
   ? cifs\_revalidate\_mapping+0x65/0xc0 \[cifs\]
   step\_into+0x195/0x610
   ? lookup\_fast+0xe2/0xf0
   path\_lookupat+0x64/0x140
   filename\_lookup+0xc2/0x140
   ? \_\_create\_object+0x299/0x380
   ? kmem\_cache\_alloc+0x119/0x220
   ? user\_path\_at\_empty+0x31/0x50
   user\_path\_at\_empty+0x31/0x50
   \_\_x64\_sys\_chdir+0x2a/0xd0
   ? exit\_to\_user\_mode\_prepare+0xca/0x100
   do\_syscall\_64+0x42/0x90
   entry\_SYSCALL\_64\_after\_hwframe+0x72/0xdc

This fix adds an inline cifs\_dfs\_d\_automount() {return -EREMOTE} handler
when CONFIG\_CIFS\_DFS\_UPCALL is disabled. An alternative would be to
avoid flagging S\_AUTOMOUNT, etc. without CONFIG\_CIFS\_DFS\_UPCALL. This
approach was chosen as it provides more control over the error path.

## Affected and fixed versions

- Linux: \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< 26a32a212bc540f4773cd6af8cf73e967d72569c; \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< b64305185b76f1d5145ce594ff48f3f0e70695bd; \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< b7d854c33ab48e55fc233699bbefe39ec9bb5c05; \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< 1e144b68208e98fd4602c842a7149ba5f41d87fb; \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< 179a88a8558bbf42991d361595281f3e45d7edfc (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- Upgrade Linux to 179a88a8558bbf42991d361595281f3e45d7edfc or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53246.md
Affected: Linux >= 25e195aa1e607f129ab912d29fcfc79239703307, < 26a32a212bc540f4773cd6af8cf73e967d72569c; >= 25e195aa1e607f129ab912d29fcfc79239703307, < b64305185b76f1d5145ce594ff48f3f0e70695bd; >= 25e195aa1e607f129ab912d29fcfc79239703307, < b7d854c33ab48e55fc233699bbefe39ec9bb5c05; >= 25e195aa1e607f129ab912d…
Fixed in: Linux 26a32a212bc540f4773cd6af8cf73e967d72569c, Linux 1e144b68208e98fd4602c842a7149ba5f41d87fb, Linux 179a88a8558bbf42991d361595281f3e45d7edfc

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-2023-53246 being exploited?

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

### How serious is CVE-2023-53246?

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

### Which versions are affected by CVE-2023-53246?

Linux \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< 26a32a212bc540f4773cd6af8cf73e967d72569c; \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< b64305185b76f1d5145ce594ff48f3f0e70695bd; \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< b7d854c33ab48e55fc233699bbefe39ec9bb5c05; \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< 1e144b68208e98fd4602c842a7149ba5f41d87fb; \>= 25e195aa1e607f129ab912d29fcfc79239703307, \< 179a88a8558bbf42991d361595281f3e45d7edfc; Linux 5.7.

### Is there a fix for CVE-2023-53246?

Yes. Fixed in Linux 26a32a212bc540f4773cd6af8cf73e967d72569c, Linux 1e144b68208e98fd4602c842a7149ba5f41d87fb, Linux 179a88a8558bbf42991d361595281f3e45d7edfc. Upgrade Linux to 179a88a8558bbf42991d361595281f3e45d7edfc or later.

### How do I check if I'm affected by CVE-2023-53246?

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/26a32a212bc540f4773cd6af8cf73e967d72569c>
- patch: <https://git.kernel.org/stable/c/b64305185b76f1d5145ce594ff48f3f0e70695bd>
- patch: <https://git.kernel.org/stable/c/b7d854c33ab48e55fc233699bbefe39ec9bb5c05>
- patch: <https://git.kernel.org/stable/c/1e144b68208e98fd4602c842a7149ba5f41d87fb>
- patch: <https://git.kernel.org/stable/c/179a88a8558bbf42991d361595281f3e45d7edfc>

## 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-2023-53246>

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