CVE-2023-53246
cifs: fix DFS traversal oops without CONFIG_CIFS_DFS_UPCALL
Mitigation
- Upgrade Linux to 179a88a8558bbf42991d361595281f3e45d7edfc or later.
Who should check
- Anyone running Linux >= 25e195aa1e607f129ab912d29fcfc79239703307, < 26a32a212bc540f4773cd6af8cf73e967d72569c; >= 25e195aa1e607f129ab912d29fcfc79239703307, < b64305185b76f1d5145ce594ff48f3f0e70695bd; >= 25e195aa1e607f129ab912d29fcfc79239703307, < b7d854c33ab48e55fc233699bbefe39ec9bb5c05; >= 25e195aa1e607f129ab912d29fcfc79239703307, < 1e144b68208e98fd4602c842a7149ba5f41d87fb; >= 25e195aa1e607f129ab912d29fcfc79239703307, < 179a88a8558bbf42991d361595281f3e45d7edfc
- Anyone running Linux 5.7
Vulnerability facts
- Affected
- Linux >= 25e195aa1e607f129ab912d29fcfc79239703307, < 26a32a212bc540f4773cd6af8cf73e967d72569c; >= 25e195aa1e607f129ab912d29fcfc79239703307, < b64305185b76f1d5145ce594ff48f3f0e70695bd; >= 25e195aa1e607f129ab912d29fcfc79239703307, < b7d854c33ab48e55fc233699bbefe39ec9bb5c05; >= 25e195aa1e607f129ab912d29fcfc79239703307, < 1e144b68208e98fd4602c842a7149ba5f41d87fb; >= 25e195aa1e607f129ab912d29fcfc79239703307, < 179a88a8558bbf42991d361595281f3e45d7edfc; Linux 5.7
- Fixed in
- Linux 26a32a212bc540f4773cd6af8cf73e967d72569c, Linux 1e144b68208e98fd4602c842a7149ba5f41d87fb, Linux 179a88a8558bbf42991d361595281f3e45d7edfc
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
- CWE
- CWE-476
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 25e195aa1e607f129ab912d29fcfc79239703307, < 26a32a212bc540f4773cd6af8cf73e967d72569c; >= 25e195aa1e607f129ab912d29fcfc79239703307, < b64305185b76f1d5145ce594ff48f3f0e70695bd; >= 25e195aa1e607f129ab912d29fcfc79239703307, < b7d854c33ab48e55fc233699bbefe39ec9bb5c05; >= 25e195aa1e607f129ab912d29fcfc79239703307, < 1e144b68208e98fd4602c842a7149ba5f41d87fb; >= 25e195aa1e607f129ab912d29fcfc79239703307, < 179a88a8558bbf42991d361595281f3e45d7edfc | — | cvelist |
| Linux | 5.7 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://git.kernel.org/stable/c/26a32a212bc540f4773cd6af8cf73e967d72569c
- https://git.kernel.org/stable/c/b64305185b76f1d5145ce594ff48f3f0e70695bd
- https://git.kernel.org/stable/c/b7d854c33ab48e55fc233699bbefe39ec9bb5c05
- https://git.kernel.org/stable/c/1e144b68208e98fd4602c842a7149ba5f41d87fb
- https://git.kernel.org/stable/c/179a88a8558bbf42991d361595281f3e45d7edfc
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.