VDB

CVE-2026-74522

CVE-2026-74522 PUBLISHED CVSS 8.8 HIGH

ksmbd: fix use-after-free in __close_file_table_ids()

Reported by linux · Published August 15, 2026

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in __close_file_table_ids() A ksmbd_file can remain alive after logical close while another session holds a temporary reference obtained through ksmbd_lookup_fd_inode(). ksmbd_close_fd() currently marks the file closed and drops the idr-owned reference, but leaves the pointer published in the closing session's idr until the final reference is dropped. If the foreign holder performs the final ksmbd_fd_put(), __put_fd_final() supplies the foreign session's file table to __ksmbd_close_fd(). The object is then freed without being removed from its owner's idr, and the owner session later dereferences the stale pointer during file-table teardown. Remove the volatile id from the owner's idr while ksmbd_close_fd() still holds that table's lock, and clear volatile_id before dropping the idr-owned reference. A later foreign final put then only performs physical destruction and cannot remove the object from the wrong table.

EPSS 0.44% · 38.5th percentile

Risk scores

CVSS 3.1
8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.44%
38.5th percentile

Affected products

VendorProductVersions
LinuxLinux8510a043d334ecdf83d4604782f288db6bf21d60, 8510a043d334ecdf83d4604782f288db6bf21d60, 8510a043d334ecdf83d4604782f288db6bf21d60
LinuxLinux5.18, 0, 6.1.183
linuxlinux_kernel5.18, 5.18, 5.18
LinuxLinux*, 8510a043d334ecdf83d4604782f288db6bf21d60, 8510a043d334ecdf83d4604782f288db6bf21d60

Timeline

  • Aug 15, 2026 CVE Published
  • Aug 16, 2026 EPSS Score (30 in total, the first dated here)
  • Aug 19, 2026 Security Advisory
  • Aug 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-74522
vulnetix vdb fixes CVE-2026-74522

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-74522/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›