CVE-2026-31710 smb: client: fix dir separator in SMB1 UNIX mounts

Medium 5.5 Published Updated

Incorrect directory separator handling in SMB1 UNIX mounts may allow path traversal, enabling unauthorized file access or modification.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-31710?

CVE-2026-31710 is a medium-severity path traversal vulnerability in Linux kernel, published on 1 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

smb: client: fix dir separator in SMB1 UNIX mounts

When calling cifs_mount_get_tcon() with SMB1 UNIX mounts, @cifs_sb->mnt_cifs_flags needs to be read or updated only after calling reset_cifs_unix_caps(), otherwise it might end up with missing CIFS_MOUNT_POSIXACL and CIFS_MOUNT_POSIX_PATHS bits.

This fixes the wrong dir separator used in paths caused by the missing CIFS_MOUNT_POSIX_PATHS bit in cifs_sb_info::mnt_cifs_flags.

Which versions are affected by CVE-2026-31710?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2026-31710?

Apply the vendor's patch.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-31710 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2026-31710, GHSA-8293-64hg-p37m, UBUNTU-CVE-2026-31710.

Is CVE-2026-31710 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free