Bug 1225753 (CVE-2024-36913)

Summary: VUL-0: CVE-2024-36913: kernel: Drivers: hv: vmbus: leak pages if set_memory_encrypted() fails
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: REOPENED --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: camila.matos, mkoutny
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/408202/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-36913:5.5:(AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-05-31 13:56:47 UTC
In the Linux kernel, the following vulnerability has been resolved:

Drivers: hv: vmbus: Leak pages if set_memory_encrypted() fails

In CoCo VMs it is possible for the untrusted host to cause
set_memory_encrypted() or set_memory_decrypted() to fail such that an
error is returned and the resulting memory is shared. Callers need to
take care to handle these errors to avoid returning decrypted (shared)
memory to the page allocator, which could lead to functional or security
issues.

VMBus code could free decrypted pages if set_memory_encrypted()/decrypted()
fails. Leak the pages if this happens.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-36913
https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2024/CVE-2024-36913.mbox
https://git.kernel.org/stable/c/6123a4e8e25bd40cf44db14694abac00e6b664e6
https://git.kernel.org/stable/c/e813a0fc2e597146e9cebea61ced9c796d4e308f
https://git.kernel.org/stable/c/03f5a999adba062456c8c818a683beb1b498983a
https://www.cve.org/CVERecord?id=CVE-2024-36913
Comment 4 Olaf Hering 2024-07-10 16:34:32 UTC
fixes submitted to for-next.
Comment 5 Olaf Hering 2024-07-10 19:59:14 UTC
security-team@suse.de