Skip to content
Noroxi
NVD / CVE Program· CNA Linux

CVE-2025-22083: vhost-scsi: Fix handling of multiple calls to vhost_scsi_set_endpoint

Noroxi assessment

Priority: Monitor (action score 31/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.21% (FIRST EPSS).
  • Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: Linux Linux 2b34bdc42df047794542f3e220fe989124e4499a, 3a19eb3d9818e28f14c818a18dc913344a52ca92, 3fd054baf382a426bbf5135ede0fc5673db74d3e; azl3 kernel 6.6.85.1-4 on Azure Linux 3.0 6.6.92.2-1; azl3 kernel 6.6.92.2-1 on Azure Linux 3.0 6.6.92.2-1.

Low priority for now. Upgrade to Linux Linux 2b34bdc42df047794542f3e220fe989124e4499a, 3a19eb3d9818e28f14c818a18dc913344a52ca92, 3fd054baf382a426bbf5135ede0fc5673db74d3e; azl3 kernel 6.6.85.1-4 on Azure Linux 3.0 6.6.92.2-1; azl3 kernel 6.6.92.2-1 on Azure Linux 3.0 6.6.92.2-1 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

In the Linux kernel, the following vulnerability has been resolved: vhost-scsi: Fix handling of multiple calls to vhost_scsi_set_endpoint If vhost_scsi_set_endpoint is called multiple times without a vhost_scsi_clear_endpoint between them, we can hit multiple bugs found by Haoran Zhang: 1. Use-after-free when no tpgs are found: This fixes a use after free that occurs when vhost_scsi_set_endpoint is called more than once and calls after the first call do not find any tpgs to add to the vs_tpg. When vhost_scsi_set_endpoint first finds tpgs to add to the vs_tpg array match=true, so we will do: vhost_vq_set_backend(vq, vs_tpg); ... kfree(vs->vs_tpg); vs->vs_tpg = vs_tpg; If vhost_scsi_set_endpoint is called again and no tpgs are found match=false so we skip the vhost_vq_set_backend call leaving the pointer to the vs_tpg we then free via: kfree(vs->vs_tpg); vs->vs_tpg = vs_tpg; If a scsi request is then sent we do: vhost_scsi_handle_vq -> vhost_scsi_get_req -> vhost_vq_get_backend which sees the vs_tpg we just did a kfree on. 2. Tpg dir removal hang: This patch fixes an issue where we cannot remove a LIO/target layer tpg (and structs above it like the target) dir due to the refcount dropping to -1. The problem is that if vhost_scsi_set_endpoint detects a tpg is already in the vs->vs_tpg array or if the tpg has been removed so target_depend_item fails, the undepend goto handler will do target_undepend_item on all tpgs in the vs_tpg array dropping their refcount to 0. At this time vs_tpg contains both the tpgs we have added in the current vhost_scsi_set_endpoint call as well as tpgs we added in previous calls which are also in vs->vs_tpg. Later, when vhost_scsi_clear_endpoint runs it will do target_undepend_item on all the tpgs in the vs->vs_tpg which will drop their refcount to -1. Userspace will then not be able to remove the tpg and will hang when it tries to do rmdir on the tpg dir. 3. Tpg leak: This fixes a bug where we can leak tpgs and cause them to be un-removable because the target name is overwritten when vhost_scsi_set_endpoint is called multiple times but with different target names. The bug occurs if a user has called VHOST_SCSI_SET_ENDPOINT and setup a vhost-scsi device to target/tpg mapping, then calls VHOST_SCSI_SET_ENDPOINT again with a new target name that has tpgs we haven't seen before (target1 has tpg1 but target2 has tpg2). When this happens we don't teardown the old target tpg mapping and just overwrite the target name and the vs->vs_tpg array. Later when we do vhost_scsi_clear_endpoint, we are passed in either target1 or target2's name and we will only match that target's tpgs when we loop over the vs->vs_tpg. We will then return from the function without doing target_undepend_item on the tpgs. Because of all these bugs, it looks like being able to call vhost_scsi_set_endpoint multiple times was never supported. The major user, QEMU, already has checks to prevent this use case. So to fix the issues, this patch prevents vhost_scsi_set_endpoint from being called if it's already successfully added tpgs. To add, remove or change the tpg config or target name, you must do a vhost_scsi_clear_endpoint first.

HighCVSS 7.8 · v3.1—No exploit Fix available
Published
Apr 16, 2025
Updated
Nov 10, 2026
EPSS
0.2% · 11th percentile

Report tools

JSON

Action score

31

Monitor

Low priority for now.

CVSS
31 / 40 · 7.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.2%

CNA vs NVD score

NVD
7.8
CNA · Linux
7.8
agree

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2025-22083

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
linuxlinux kernel

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • linux linux kernel3.9.1 and later · before 6.6.87
  • linux linux kernel6.7 and later · before 6.12.23
  • linux linux kernel6.13 and later · before 6.13.11
  • linux linux kernel6.14 and later · before 6.14.2
  • linux linux kernel3.9

Versions reported by the vendor

Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.

  • Linux Linux

    • 3.9affected
    • 4f7f46d32c9875004fae1d57ae3c02cc2e6cd6a3 and later · before 451c72f5e7cf5d339a6410a635cee0825687c3dcaffected · git
    • 4f7f46d32c9875004fae1d57ae3c02cc2e6cd6a3 and later · before 2b34bdc42df047794542f3e220fe989124e4499aaffected · git
    • 4f7f46d32c9875004fae1d57ae3c02cc2e6cd6a3 and later · before 3a19eb3d9818e28f14c818a18dc913344a52ca92affected · git
    • 4f7f46d32c9875004fae1d57ae3c02cc2e6cd6a3 and later · before 3fd054baf382a426bbf5135ede0fc5673db74d3eaffected · git
    • 4f7f46d32c9875004fae1d57ae3c02cc2e6cd6a3 and later · before 63b449f73ab0dcc0ba11ceaa4c5c70bc86ccf03caffected · git
    • 4f7f46d32c9875004fae1d57ae3c02cc2e6cd6a3 and later · before 5dd639a1646ef5fe8f4bf270fad47c5c3755b9b6affected · git
    • before 3.9not affected · semver
    • 6.1.162 and later · up to and including 6.1.*not affected · semver
    • 6.6.87 and later · up to and including 6.6.*not affected · semver

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:11linux-6.1before 6.1.162-1~deb11u16.1.162-1~deb11u1
Debian:12linuxbefore 6.1.162-16.1.162-1
Debian:13linuxbefore 6.12.25-16.12.25-1
openSUSE:Leap 15.6dtb-aarch64before 6.4.0-150600.23.60.36.4.0-150600.23.60.3
openSUSE:Leap 15.6kernel-64kbbefore 6.4.0-150600.23.60.46.4.0-150600.23.60.4
openSUSE:Leap 15.6kernel-azurebefore 6.4.0-150600.8.43.16.4.0-150600.8.43.1
openSUSE:Leap 15.6kernel-debugbefore 6.4.0-150600.23.60.46.4.0-150600.23.60.4
openSUSE:Leap 15.6kernel-defaultbefore 6.4.0-150600.23.60.56.4.0-150600.23.60.5
openSUSE:Leap 15.6kernel-default-basebefore 6.4.0-150600.23.60.5.150600.12.26.46.4.0-150600.23.60.5.150600.12.26.4
openSUSE:Leap 15.6kernel-docsbefore 6.4.0-150600.23.60.36.4.0-150600.23.60.3
openSUSE:Leap 15.6kernel-kvmsmallbefore 6.4.0-150600.23.60.46.4.0-150600.23.60.4
openSUSE:Leap 15.6kernel-obs-buildbefore 6.4.0-150600.23.60.36.4.0-150600.23.60.3
openSUSE:Leap 15.6kernel-obs-qabefore 6.4.0-150600.23.60.26.4.0-150600.23.60.2
openSUSE:Leap 15.6kernel-rtbefore 6.4.0-150600.10.44.16.4.0-150600.10.44.1
openSUSE:Leap 15.6kernel-rt_debugbefore 6.4.0-150600.10.44.16.4.0-150600.10.44.1
openSUSE:Leap 15.6kernel-sourcebefore 6.4.0-150600.23.60.46.4.0-150600.23.60.4
openSUSE:Leap 15.6kernel-source-azurebefore 6.4.0-150600.8.43.16.4.0-150600.8.43.1
openSUSE:Leap 15.6kernel-source-rtbefore 6.4.0-150600.10.44.16.4.0-150600.10.44.1
openSUSE:Leap 15.6kernel-symsbefore 6.4.0-150600.23.60.46.4.0-150600.23.60.4
openSUSE:Leap 15.6kernel-syms-azurebefore 6.4.0-150600.8.43.16.4.0-150600.8.43.1
openSUSE:Leap 15.6kernel-syms-rtbefore 6.4.0-150600.10.44.16.4.0-150600.10.44.1
openSUSE:Leap 15.6kernel-zfcpdumpbefore 6.4.0-150600.23.60.46.4.0-150600.23.60.4
SUSE:Linux Enterprise Live Patching 12 SP5kernel-defaultbefore 4.12.14-122.296.14.12.14-122.296.1
SUSE:Linux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_78before 1-8.3.11-8.3.1

+25

Other highest-scoring records for the same primary product.

  • CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV
    90Now
  • CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe…KEV
    89Now
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Now

Published before and after this one in the same product

  • ← EarlierCVE-2025-22075Apr 16, 2025 · rtnetlink: Allocate vfinfo size for VF GUIDs when supported
    22Monitor
  • ← EarlierCVE-2025-22077Apr 16, 2025 · Revert "smb: client: fix TCP timers deadlock after rmmod"
    22Monitor
  • Later →CVE-2025-22090Apr 16, 2025 · x86/mm/pat: Fix VM_PAT handling when fork() fails in copy_page_range()
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux Linux2b34bdc42df047794542f3e220fe989124e4499aVendor (CNA)
Linux Linux3a19eb3d9818e28f14c818a18dc913344a52ca92Vendor (CNA)
Linux Linux3fd054baf382a426bbf5135ede0fc5673db74d3eVendor (CNA)
Linux Linux451c72f5e7cf5d339a6410a635cee0825687c3dcVendor (CNA)
Linux Linux5dd639a1646ef5fe8f4bf270fad47c5c3755b9b6Vendor (CNA)
Linux Linux63b449f73ab0dcc0ba11ceaa4c5c70bc86ccf03cVendor (CNA)
azl3 kernel 6.6.85.1-4 on Azure Linux 3.06.6.92.2-1 · CBL-Mariner ReleasesMicrosoft (MSRC)
azl3 kernel 6.6.92.2-1 on Azure Linux 3.06.6.92.2-1 · CBL-Mariner ReleasesMicrosoft (MSRC)
debian:linux6.1.162-1 · Debian:12Package registry (OSV)
debian:linux-6.16.1.162-1~deb11u1 · Debian:11Package registry (OSV)
opensuse:dtb-aarch646.4.0-150600.23.60.3 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-64kb6.4.0-150600.23.60.4 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-azure6.4.0-150600.8.43.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-debug6.4.0-150600.23.60.4 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-default6.4.0-150600.23.60.5 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-default-base6.4.0-150600.23.60.5.150600.12.26.4 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-rt6.4.0-150600.10.44.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-rt_debug6.4.0-150600.10.44.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-source-azure6.4.0-150600.8.43.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-source-rt6.4.0-150600.10.44.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-syms-azure6.4.0-150600.8.43.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-syms-rt6.4.0-150600.10.44.1 · openSUSE:Leap 15.6Package registry (OSV)
suse:kernel-64kb6.4.0-150600.23.60.4 · SUSE:Linux Enterprise Module for Basesystem 15 SP6Package registry (OSV)
suse:kernel-azure6.4.0-150600.8.43.1 · SUSE:Linux Enterprise Module for Public Cloud 15 SP6Package registry (OSV)
suse:kernel-default6.4.0-150600.23.60.5 · SUSE:Linux Enterprise Module for Basesystem 15 SP6Package registry (OSV)
suse:kernel-default-base6.4.0-150600.23.60.5.150600.12.26.4 · SUSE:Linux Enterprise Module for Basesystem 15 SP6Package registry (OSV)
suse:kernel-livepatch-SLE15-SP6-RT_Update_131-150600.1.5.1 · SUSE:Linux Enterprise Live Patching 15 SP6Package registry (OSV)
suse:kernel-rt6.4.0-150600.10.44.1 · SUSE:Real Time Module 15 SP6Package registry (OSV)
suse:kernel-rt_debug6.4.0-150600.10.44.1 · SUSE:Real Time Module 15 SP6Package registry (OSV)
suse:kernel-source6.4.0-150600.23.60.4 · SUSE:Linux Enterprise Module for Basesystem 15 SP6Package registry (OSV)

+4

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

No history yet (it accumulates with the daily EPSS job).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

Weakness class (CWE)

CWE-416 · Use After Free

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

nvd-primary

Root cause

After a memory region is freed, another reference pointing to it is still used. By then, the same region may have been allocated for different data.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

c
free(dev->buf);/* ... another thread is still running ... */process(dev->buf);

Fixed

c
lock(&dev->lock);free(dev->buf);dev->buf = NULL;unlock(&dev->lock);

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records