In the Linux kernel, the following vulnerability has been resolved:
Drivers: hv: vmbus: Leak pages if setmemoryencrypted() fails
In CoCo VMs it is possible for the untrusted host to cause setmemoryencrypted() or setmemorydecrypted() 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 setmemoryencrypted()/decrypted() fails. Leak the pages if this happens.
[ { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@03f5a999adba062456c8c818a683beb1b498983a", "signature_version": "v1", "target": { "file": "drivers/hv/connection.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "101079780272796296181473142052687761344", "36290799746642469955601074168208891745", "134334477422566870924278398534514629890", "261967401056082664563263299284859913624", "152868725446206110441153323762706528958", "142531846108127906290865625270118075419", "93367111755455522218587676731949570727", "191016843707522203085663323555856869725", "16100247928548440797517063794442535077", "42840515014336023362466727018319368320", "201622223996198708018046651530162839576", "16063940749954994023200562780082207065", "159647542984172857521244488395843856193", "251744618319257936359925382728600109500" ] }, "id": "CVE-2024-36913-0b2ac770" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@03f5a999adba062456c8c818a683beb1b498983a", "signature_version": "v1", "target": { "function": "vmbus_connect", "file": "drivers/hv/connection.c" }, "digest": { "function_hash": "166591308422330266547141803662295335586", "length": 3059.0 }, "id": "CVE-2024-36913-102b3194" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7f2afcbfe4f6b6047b5f68db5067b7321e5be125", "signature_version": "v1", "target": { "function": "vmbus_disconnect", "file": "drivers/hv/connection.c" }, "digest": { "function_hash": "159290991552821037895376370071528510488", "length": 910.0 }, "id": "CVE-2024-36913-1c76db22" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6123a4e8e25bd40cf44db14694abac00e6b664e6", "signature_version": "v1", "target": { "file": "drivers/hv/connection.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "101079780272796296181473142052687761344", "36290799746642469955601074168208891745", "134334477422566870924278398534514629890", "261967401056082664563263299284859913624", "152868725446206110441153323762706528958", "142531846108127906290865625270118075419", "93367111755455522218587676731949570727", "191016843707522203085663323555856869725", "16100247928548440797517063794442535077", "42840515014336023362466727018319368320", "201622223996198708018046651530162839576", "16063940749954994023200562780082207065", "159647542984172857521244488395843856193", "251744618319257936359925382728600109500" ] }, "id": "CVE-2024-36913-21b690a0" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e813a0fc2e597146e9cebea61ced9c796d4e308f", "signature_version": "v1", "target": { "function": "vmbus_disconnect", "file": "drivers/hv/connection.c" }, "digest": { "function_hash": "159290991552821037895376370071528510488", "length": 910.0 }, "id": "CVE-2024-36913-30471637" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6123a4e8e25bd40cf44db14694abac00e6b664e6", "signature_version": "v1", "target": { "function": "vmbus_disconnect", "file": "drivers/hv/connection.c" }, "digest": { "function_hash": "159290991552821037895376370071528510488", "length": 910.0 }, "id": "CVE-2024-36913-39e46b81" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7f2afcbfe4f6b6047b5f68db5067b7321e5be125", "signature_version": "v1", "target": { "function": "vmbus_connect", "file": "drivers/hv/connection.c" }, "digest": { "function_hash": "166591308422330266547141803662295335586", "length": 3059.0 }, "id": "CVE-2024-36913-4fade73d" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6123a4e8e25bd40cf44db14694abac00e6b664e6", "signature_version": "v1", "target": { "function": "vmbus_connect", "file": "drivers/hv/connection.c" }, "digest": { "function_hash": "166591308422330266547141803662295335586", "length": 3059.0 }, "id": "CVE-2024-36913-5955ec5c" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e813a0fc2e597146e9cebea61ced9c796d4e308f", "signature_version": "v1", "target": { "file": "drivers/hv/connection.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "101079780272796296181473142052687761344", "36290799746642469955601074168208891745", "134334477422566870924278398534514629890", "261967401056082664563263299284859913624", "152868725446206110441153323762706528958", "142531846108127906290865625270118075419", "93367111755455522218587676731949570727", "191016843707522203085663323555856869725", "16100247928548440797517063794442535077", "42840515014336023362466727018319368320", "201622223996198708018046651530162839576", "16063940749954994023200562780082207065", "159647542984172857521244488395843856193", "251744618319257936359925382728600109500" ] }, "id": "CVE-2024-36913-7914c4ff" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7f2afcbfe4f6b6047b5f68db5067b7321e5be125", "signature_version": "v1", "target": { "file": "drivers/hv/connection.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "101079780272796296181473142052687761344", "36290799746642469955601074168208891745", "134334477422566870924278398534514629890", "261967401056082664563263299284859913624", "152868725446206110441153323762706528958", "142531846108127906290865625270118075419", "93367111755455522218587676731949570727", "191016843707522203085663323555856869725", "16100247928548440797517063794442535077", "42840515014336023362466727018319368320", "201622223996198708018046651530162839576", "16063940749954994023200562780082207065", "159647542984172857521244488395843856193", "251744618319257936359925382728600109500" ] }, "id": "CVE-2024-36913-87c81fec" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e813a0fc2e597146e9cebea61ced9c796d4e308f", "signature_version": "v1", "target": { "function": "vmbus_connect", "file": "drivers/hv/connection.c" }, "digest": { "function_hash": "166591308422330266547141803662295335586", "length": 3059.0 }, "id": "CVE-2024-36913-d11c1095" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@03f5a999adba062456c8c818a683beb1b498983a", "signature_version": "v1", "target": { "function": "vmbus_disconnect", "file": "drivers/hv/connection.c" }, "digest": { "function_hash": "159290991552821037895376370071528510488", "length": 910.0 }, "id": "CVE-2024-36913-d916edab" } ]