Ubuntu update for qemu



Published: 2022-06-21
Risk Medium
Patch available YES
Number of vulnerabilities 7
CVE-ID CVE-2021-3507
CVE-2021-3929
CVE-2021-4206
CVE-2021-4207
CVE-2022-0358
CVE-2022-26353
CVE-2022-26354
CWE-ID CWE-122
CWE-416
CWE-190
CWE-362
CWE-276
CWE-404
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
Ubuntu
Operating systems & Components / Operating system

qemu-system-x86-xen (Ubuntu package)
Operating systems & Components / Operating system package or component

qemu-system-mips (Ubuntu package)
Operating systems & Components / Operating system package or component

qemu-system-ppc (Ubuntu package)
Operating systems & Components / Operating system package or component

qemu-system-arm (Ubuntu package)
Operating systems & Components / Operating system package or component

qemu-system-sparc (Ubuntu package)
Operating systems & Components / Operating system package or component

qemu-system-x86 (Ubuntu package)
Operating systems & Components / Operating system package or component

qemu-system (Ubuntu package)
Operating systems & Components / Operating system package or component

qemu-system-s390x (Ubuntu package)
Operating systems & Components / Operating system package or component

qemu-system-misc (Ubuntu package)
Operating systems & Components / Operating system package or component

qemu-system-x86-microvm (Ubuntu package)
Operating systems & Components / Operating system package or component

Vendor Canonical Ltd.

Security Bulletin

This security bulletin contains information about 7 vulnerabilities.

1) Heap-based buffer overflow

EUVDB-ID: #VU64569

Risk: Medium

CVSSv3.1: 5.9 [CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:N/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-3507

CWE-ID: CWE-122 - Heap-based Buffer Overflow

Exploit availability: No

Description

The vulnerability allows a remote user to perform a denial of service (DoS) attack.

The vulnerability exists due to a boundary error in the fdctrl_transfer_handler() function in hw/block/fdc.c while processing DMA read data transfers from the floppy drive to the guest system. A remote privileged user on the guest OS can trigger a heap-based buffer overflow and crash the QEMU process on the host OS.

Mitigation

Update the affected package qemu to the latest version.

Vulnerable software versions

Ubuntu: 18.04 - 22.04

qemu-system-x86-xen (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-mips (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-ppc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-arm (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-sparc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-x86 (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-s390x (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-misc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-x86-microvm (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

External links

http://ubuntu.com/security/notices/USN-5489-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated privileged user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Use-after-free

EUVDB-ID: #VU64570

Risk: Medium

CVSSv3.1: 7 [CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-3929

CWE-ID: CWE-416 - Use After Free

Exploit availability: No

Description

The vulnerability allows a remote user to compromise vulnerable system.

The vulnerability exists due to a use-after-free error in the NVM Express Controller emulation in QEMU within the dma_buf_write() and dma_buf_read() function in hw/nvme/ctrl.c:nvme_tx(). A remote privileged user on the guest OS can trigger a use-after-free error and execute arbitrary code on the QEMU host.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.

Mitigation

Update the affected package qemu to the latest version.

Vulnerable software versions

Ubuntu: 18.04 - 22.04

qemu-system-x86-xen (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-mips (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-ppc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-arm (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-sparc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-x86 (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-s390x (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-misc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-x86-microvm (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

External links

http://ubuntu.com/security/notices/USN-5489-1


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated privileged user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

3) Integer overflow

EUVDB-ID: #VU63787

Risk: Low

CVSSv3.1: 7.1 [CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-4206

CWE-ID: CWE-190 - Integer overflow

Exploit availability: No

Description

The vulnerability allows a local user to escalate privileges on the target system.

The vulnerability exists due to integer overflow in the cursor_alloc() function in the QXL display device emulation in QEMU. A privileged user can crash the QEMU process on the host or potentially execute arbitrary code within the context of the QEMU process.

Mitigation

Update the affected package qemu to the latest version.

Vulnerable software versions

Ubuntu: 18.04 - 22.04

qemu-system-x86-xen (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-mips (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-ppc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-arm (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-sparc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-x86 (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-s390x (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-misc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-x86-microvm (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

External links

http://ubuntu.com/security/notices/USN-5489-1


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

4) Race condition

EUVDB-ID: #VU63788

Risk: Low

CVSSv3.1: 7.1 [CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-4207

CWE-ID: CWE-362 - Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Exploit availability: No

Description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a race condition in the QXL display device emulation in QEMU. A privileged user can exploit the race and gain unauthorized access to sensitive information and escalate privileges on the system.

Mitigation

Update the affected package qemu to the latest version.

Vulnerable software versions

Ubuntu: 18.04 - 22.04

qemu-system-x86-xen (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-mips (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-ppc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-arm (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-sparc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-x86 (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-s390x (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-misc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-x86-microvm (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

External links

http://ubuntu.com/security/notices/USN-5489-1


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

5) Incorrect default permissions

EUVDB-ID: #VU61492

Risk: Low

CVSSv3.1: 6.2 [CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-0358

CWE-ID: CWE-276 - Incorrect Default Permissions

Exploit availability: No

Description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to incorrect QEMU virtio-fs shared file system daemon (virtiofsd) implementation. An attacker on the guest OS can create files in the directories shared by virtio-fs with unintended group ownership in a scenario where a directory is SGID to a certain group and is writable by a user who is not a member of the group. This can lead to privilege escalation within the guest OS.

The vulnerability exists due to incomplete fox for #VU13631 (CVE-2018-13405).

Mitigation

Update the affected package qemu to the latest version.

Vulnerable software versions

Ubuntu: 18.04 - 22.04

qemu-system-x86-xen (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-mips (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-ppc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-arm (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-sparc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-x86 (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-s390x (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-misc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-x86-microvm (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

External links

http://ubuntu.com/security/notices/USN-5489-1


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

6) Use-after-free

EUVDB-ID: #VU63783

Risk: Low

CVSSv3.1: 5.8 [CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-26353

CWE-ID: CWE-416 - Use After Free

Exploit availability: No

Description

The vulnerability allows a local user to compromise vulnerable system.

The vulnerability exists due to a use-after-free error in the virtio-net device of QEMU. A privileged user can exploit this issue to crash QEMU or potentially execute arbitrary code with elevated privileges.

Mitigation

Update the affected package qemu to the latest version.

Vulnerable software versions

Ubuntu: 18.04 - 22.04

qemu-system-x86-xen (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-mips (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-ppc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-arm (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-sparc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-x86 (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-s390x (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-misc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-x86-microvm (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

External links

http://ubuntu.com/security/notices/USN-5489-1


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

7) Improper Resource Shutdown or Release

EUVDB-ID: #VU63786

Risk: Low

CVSSv3.1: 3.3 [CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-26354

CWE-ID: CWE-404 - Improper Resource Shutdown or Release

Exploit availability: No

Description

The vulnerability allows a local user to gain access to sensitive information.

The vulnerability exists in the vhost-vsock device of QEMU. A local user can trigger the error and gain access to sensitive information.

Mitigation

Update the affected package qemu to the latest version.

Vulnerable software versions

Ubuntu: 18.04 - 22.04

qemu-system-x86-xen (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-mips (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-ppc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-arm (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-sparc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-x86 (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-s390x (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-misc (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

qemu-system-x86-microvm (Ubuntu package): before 1:6.2+dfsg-2ubuntu6.2

External links

http://ubuntu.com/security/notices/USN-5489-1


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###