VDB

CVE-2022-50058

CVE-2022-50058 PUBLISHED

vdpa_sim_blk: set number of address spaces and virtqueue groups

Reported by linux · Published June 18, 2025

In the Linux kernel, the following vulnerability has been resolved: vdpa_sim_blk: set number of address spaces and virtqueue groups Commit bda324fd037a ("vdpasim: control virtqueue support") added two new fields (nas, ngroups) to vdpasim_dev_attr, but we forgot to initialize them for vdpa_sim_blk. When creating a new vdpa_sim_blk device this causes the kernel to panic in this way: $ vdpa dev add mgmtdev vdpasim_blk name blk0 BUG: kernel NULL pointer dereference, address: 0000000000000030 ... RIP: 0010:vhost_iotlb_add_range_ctx+0x41/0x220 [vhost_iotlb] ... Call Trace: <TASK> vhost_iotlb_add_range+0x11/0x800 [vhost_iotlb] vdpasim_map_range+0x91/0xd0 [vdpa_sim] vdpasim_alloc_coherent+0x56/0x90 [vdpa_sim] ... This happens because vdpasim->iommu[0] is not initialized when dev_attr.nas is 0. Let's fix this issue by initializing both (nas, ngroups) to 1 for vdpa_sim_blk.

EPSS 0.16% · 5.5th percentile

Risk scores

EPSS Score
0.16%
5.5th percentile

Affected products

VendorProductVersions
LinuxLinuxbda324fd037a6b0d44da5699574ce741ca161bc4, bda324fd037a6b0d44da5699574ce741ca161bc4
LinuxLinux5.19, 0, 5.19.4
linuxlinux_kernel5.19, 5.19
LinuxLinux*, *, 5.19

Timeline

  • Jun 18, 2025 CVE Published
  • Jun 29, 2025 EPSS Score (29 in total, the first dated here)
  • May 23, 2026 Coalition ESS Score
  • Jun 2, 2026 Security Advisory (239 in total, the first dated here)
  • Oct 13, 2026 CVE Updated
  • Oct 18, 2026 Distribution Patch (228 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-50058
vulnetix vdb fixes CVE-2022-50058

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-2022-50058/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 ›