high CVSS 8.1

CVE-2026-98454·Kernel vulnerability

In the Linux kernel, the following vulnerability has been resolved: smb: client: fix create context out-of-bounds reads smb2_parse_contexts() validates the complete create-context area but does not limit each record to its Next field before dispatching it. A malformed chain can therefore expose bytes beyond the current context to a handler. The QFid handler also used a full response-structure cast although it only reads DiskFileId. The SMB2/SMB3 lease parsers made the same layout assumption: they read LeaseState and LeaseFlags at canonical offsets rather than at DataOffset. A valid non-canonical DataOffset could therefore yield unrelated in-bounds data, while a short DataLength was still accepted. Limit each context to its Next value, reject offsets before the context header, and reject malformed chains. Bound the name range by the current context and do not dispatch a known handler when DataLength is zero. Read the QFid DiskFileId only when the context data covers that field. Parse the lease context from DataOffset and require DataLength to match the v1 or v2 lease_context size used by ksmbd. A size mismatch skips lease parsing without failing the open.

Severity
high
Software
Kernel
Fixed in
5.10.273, 5.15.224, 6.1.191, 6.6.158, 6.12.112, 6.18.55, 7.2.9, 7.3
Published

How to fix this CVE

Update your Linux kernel to a patched stable release to remediate memory disclosure vulnerabilities in SMB2/SMB3 context parsing. Choose the appropriate fixed version for your kernel branch: 6.6.158, 6.12.112, 6.18.55, 7.2.9, or 7.3 (mainline). Most users should apply their distribution's kernel security update rather than manually upgrading to mainline.

sudo dnf update kernel kernel-devel

Defensia detects this vulnerability

How to check if you are affected

  1. Check kernel version: uname -r — compare against fixed versions (6.6.158+, 6.12.112+, 6.18.55+, 7.2.9+, 7.3+)
  2. Verify SMB client is enabled: grep -i smb /boot/config-$(uname -r) | grep CONFIG_SMB_CLIENT
  3. Review kernel logs for SMB context parsing errors: sudo dmesg | grep -i 'smb.*context' or sudo journalctl -k | grep -i smb
  4. Confirm patch applied: sudo journalctl -b | grep 'kernel.*update' or check /var/log/apt/history.log for recent kernel updates

FAQ

What is CVE-2026-98454?

This vulnerability allows information disclosure through memory reads beyond allocated SMB context structures in the Linux kernel's SMB2/SMB3 client implementation. Malformed SMB server responses can trigger out-of-bounds reads in lease context and file ID handlers, exposing kernel memory to a remote attacker.

Is CVE-2026-98454 being actively exploited?

No — this CVE is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploit code is available. However, the vulnerability requires network interaction with a malicious SMB server, making defense-in-depth patching important.

What versions of Kernel are affected by CVE-2026-98454?

Kernel versions prior to: 6.6.158, 6.12.112, 6.18.55, 7.2.9, and mainline 7.3. All stable branches from 6.6.x through 7.2.x are affected unless running a patched release.

How do I check if my server is vulnerable to CVE-2026-98454?

Run `uname -r` to get your kernel version and compare it against the fixed versions. If your version is earlier than the corresponding fix (e.g., 6.6.157 vs 6.6.158), your system is vulnerable.

Does Defensia detect CVE-2026-98454?

Yes — Defensia's CVE advisory scanner compares installed kernel package versions against the NVD database. If you are running an affected kernel version on a monitored server, CVE-2026-98454 will appear in your dashboard with remediation steps and patch availability.

Related Kernel CVEs

CVE-2026-63795CVSS 10In the Linux kernel, the following vulnerability has been resolved: 9p: avoid putting oldfid in p9_client_walk() error path When p9_client_walk() is called with clone set to false, fid aliases oldfid. If the walk subsequently fails after the request has been sent, the error path jumps to clunk_fid, which currently calls p9_fid_put(fid) unconditionally. This drops a reference to oldfid even though ownership of oldfid remains with the caller. If this is the last reference, oldfid can be clunked and destroyed while the caller still expects it to be valid. A later use or put of oldfid can then trigger a use-after-free or refcount underflow. Fix this by only putting fid in the clunk_fid error path when it does not alias oldfid, matching the existing guard in the error path below. This can be triggered when a multi-component walk is split into multiple p9_client_walk() calls and a later non-cloning walk fails. A reproducer and refcount warning logs are available on request.
CVE-2026-53398CVSS 9.8In the Linux kernel, the following vulnerability has been resolved: NFSD: Fix SECINFO_NO_NAME decode error cleanup nfsd4_decode_secinfo_no_name() currently initializes sin_exp after decoding sin_style. If the XDR stream is truncated, the decoder returns nfserr_bad_xdr before sin_exp is initialized. Since commit 3fdc54646234 ("NFSD: Reduce amount of struct nfsd4_compoundargs that needs clearing"), the inline iops array is not cleared between RPC calls. A failed SECINFO_NO_NAME decode can therefore leave sin_exp holding stale union contents from a previous operation. The error response path still invokes nfsd4_secinfo_no_name_release(), which calls exp_put() on a non-NULL sin_exp. Initialize sin_exp before the first failable decode step, matching nfsd4_decode_secinfo().
CVE-2026-53399CVSS 9.8In the Linux kernel, the following vulnerability has been resolved: nfsd: release layout stid on setlease failure nfs4_alloc_stid() publishes the new stid into cl->cl_stateids via idr_alloc_cyclic() under cl_lock before returning to nfsd4_alloc_layout_stateid(). When nfsd4_layout_setlease() then fails, the error path frees the layout stateid directly with kmem_cache_free() without ever calling idr_remove(), leaving the IDR slot pointing at freed slab memory. Any subsequent IDR walker (states_show, client teardown) dereferences the dangling pointer. The correct teardown for an IDR-published stid is nfs4_put_stid(), which removes the IDR slot under cl_lock, dispatches sc_free (nfsd4_free_layout_stateid) to release ls->ls_file via nfsd4_close_layout(), and drops the nfs4_file reference in its tail. A second issue blocks that switch: nfsd4_free_layout_stateid() unconditionally inspects ls->ls_fence_work via delayed_work_pending() under ls_lock, but INIT_DELAYED_WORK(&ls->ls_fence_work, ...) currently runs only after the setlease call. On the setlease-failure path the destructor would touch an uninitialized delayed_work. nfsd4_alloc_layout_stateid() nfs4_alloc_stid() /* idr_alloc_cyclic under cl_lock */ nfsd4_layout_setlease() /* fails */ nfs4_put_stid() nfsd4_free_layout_stateid() delayed_work_pending(&ls->ls_fence_work) /* needs INIT */ nfsd4_close_layout() /* nfsd_file_put(ls->ls_file) */ put_nfs4_file() Fix by hoisting the ls_fenced / ls_fence_delay / INIT_DELAYED_WORK initialization above the nfsd4_layout_setlease() call, and replace the manual nfsd_file_put + put_nfs4_file + kmem_cache_free cleanup with a single nfs4_put_stid(stp).
CVE-2026-64136CVSS 9.8In the Linux kernel, the following vulnerability has been resolved: smb: client: protect tc_count increment in smb2_find_smb_sess_tcon_unlocked() Commit 96c4af418586 ("cifs: Fix locking usage for tcon fields") refactored cifs code to change cifs_tcp_ses_lock for tc_lock around tc_count changes. There was missing lock around tc_count increment inside smb2_find_smb_sess_tcon_unlocked().
CVE-2026-64160CVSS 9.8In the Linux kernel, the following vulnerability has been resolved: netfs: Fix potential for tearing in ->remote_i_size and ->zero_point Fix potential tearing in using ->remote_i_size and ->zero_point by copying i_size_read() and i_size_write() and using the same seqcount as for i_size. We need to make sure that netfslib and the filesystems that use it always hold i_lock whilst updating any of the sizes to prevent i_size_seqcount from getting corrupted.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-98454. Free for 1 server.

Get started free