{"id":"DEBIAN-CVE-2022-50058","details":"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:      \u003cTASK\u003e      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-\u003eiommu[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.","modified":"2026-09-01T20:04:57.337795910Z","published":"2025-06-18T11:15:34.497Z","upstream":["CVE-2022-50058"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2022-50058"}],"affected":[{"package":{"name":"linux","ecosystem":"Debian:12","purl":"pkg:deb/debian/linux?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.2-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50058.json"}},{"package":{"name":"linux","ecosystem":"Debian:13","purl":"pkg:deb/debian/linux?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.2-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50058.json"}},{"package":{"name":"linux","ecosystem":"Debian:14","purl":"pkg:deb/debian/linux?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.2-1"}]}],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-50058.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}