In the Linux kernel, the following vulnerability has been resolved:
efi: libstub: only free priv.runtime_map when allocated
priv.runtimemap is only allocated when efinovamap is not set. Otherwise, it is an uninitialized value. In the error path, it is freed unconditionally. Avoid passing an uninitialized value to freepool. Free priv.runtimemap only when it was allocated.
This bug was discovered and resolved using Coverity Static Analysis Security Testing (SAST) by Synopsys, Inc.
[
{
"id": "CVE-2024-33619-1cad0330",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "drivers/firmware/efi/libstub/fdt.c",
"function": "allocate_new_fdt_and_exit_boot"
},
"digest": {
"function_hash": "35825853066228242498611585675663983237",
"length": 2202.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ca67a5fe1c606d1fbe24c30a9fc0bdc43a18554"
},
{
"id": "CVE-2024-33619-2302b27c",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "drivers/firmware/efi/libstub/fdt.c"
},
"digest": {
"line_hashes": [
"44144982325605036459420253148777158753",
"42020417402694510461375275276575132765",
"4977564731639290673099557194975803397",
"124926760810842561957032758527043999519"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b8938d6f570f010a1dcdbfed3e5b5d3258c2a908"
},
{
"id": "CVE-2024-33619-278b3adf",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "drivers/firmware/efi/libstub/fdt.c"
},
"digest": {
"line_hashes": [
"44144982325605036459420253148777158753",
"42020417402694510461375275276575132765",
"4977564731639290673099557194975803397",
"124926760810842561957032758527043999519"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9dce01f386c9ce6990c0a83fa14b1c95330b037e"
},
{
"id": "CVE-2024-33619-37bf89e5",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "drivers/firmware/efi/libstub/fdt.c"
},
"digest": {
"line_hashes": [
"44144982325605036459420253148777158753",
"42020417402694510461375275276575132765",
"4977564731639290673099557194975803397",
"124926760810842561957032758527043999519"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ca67a5fe1c606d1fbe24c30a9fc0bdc43a18554"
},
{
"id": "CVE-2024-33619-55228d9a",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "drivers/firmware/efi/libstub/fdt.c",
"function": "allocate_new_fdt_and_exit_boot"
},
"digest": {
"function_hash": "35825853066228242498611585675663983237",
"length": 2202.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b8938d6f570f010a1dcdbfed3e5b5d3258c2a908"
},
{
"id": "CVE-2024-33619-8817515c",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "drivers/firmware/efi/libstub/fdt.c",
"function": "allocate_new_fdt_and_exit_boot"
},
"digest": {
"function_hash": "35825853066228242498611585675663983237",
"length": 2202.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4b2543f7e1e6b91cfc8dd1696e3cdf01c3ac8974"
},
{
"id": "CVE-2024-33619-97a2ebb0",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"target": {
"file": "drivers/firmware/efi/libstub/fdt.c",
"function": "allocate_new_fdt_and_exit_boot"
},
"digest": {
"function_hash": "35825853066228242498611585675663983237",
"length": 2202.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9dce01f386c9ce6990c0a83fa14b1c95330b037e"
},
{
"id": "CVE-2024-33619-de8a955e",
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"target": {
"file": "drivers/firmware/efi/libstub/fdt.c"
},
"digest": {
"line_hashes": [
"44144982325605036459420253148777158753",
"42020417402694510461375275276575132765",
"4977564731639290673099557194975803397",
"124926760810842561957032758527043999519"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4b2543f7e1e6b91cfc8dd1696e3cdf01c3ac8974"
}
]