In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Check index msg_id before read or write
[WHAT] msgid is used as an array index and it cannot be a negative value, and therefore cannot be equal to MODHDCPMESSAGEID_INVALID (-1).
[HOW] Check whether msg_id is valid before reading and setting.
This fixes 4 OVERRUN issues reported by Coverity.
[
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 672.0,
"function_hash": "3176388473222692116018313083191135056"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ae91ffbc8b8d942e3e7f188728cad557b7ed5ee4",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c",
"function": "read"
},
"id": "CVE-2024-42121-0408db32"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"97862808713319515141694127029121532210",
"264849976257350988695928992307158390444",
"203857303069228396628091498281290300511",
"97862808713319515141694127029121532210",
"264849976257350988695928992307158390444",
"203857303069228396628091498281290300511"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9933eca6ada0cd612e19522e7a319bcef464c0eb",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c"
},
"id": "CVE-2024-42121-2b7eb4c9"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 672.0,
"function_hash": "3176388473222692116018313083191135056"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a31ea49dc8064a557565725cf045944307476a6e",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c",
"function": "read"
},
"id": "CVE-2024-42121-36819cea"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 672.0,
"function_hash": "3176388473222692116018313083191135056"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fbb0701af9734cff13917a4b98b5ee9da2fde48d",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c",
"function": "read"
},
"id": "CVE-2024-42121-3feea510"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"97862808713319515141694127029121532210",
"264849976257350988695928992307158390444",
"203857303069228396628091498281290300511",
"97862808713319515141694127029121532210",
"264849976257350988695928992307158390444",
"203857303069228396628091498281290300511"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@59d99deb330af206a4541db0c4da8f73880fba03",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c"
},
"id": "CVE-2024-42121-4944a85a"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 768.0,
"function_hash": "1073612990968129447102067741282805066"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a31ea49dc8064a557565725cf045944307476a6e",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c",
"function": "write"
},
"id": "CVE-2024-42121-5adf6b7d"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 768.0,
"function_hash": "1073612990968129447102067741282805066"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9933eca6ada0cd612e19522e7a319bcef464c0eb",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c",
"function": "write"
},
"id": "CVE-2024-42121-5bb84ded"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 768.0,
"function_hash": "1073612990968129447102067741282805066"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b5b8837d066cc182ff69fb5629ad32ade5484567",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c",
"function": "write"
},
"id": "CVE-2024-42121-625fc9c3"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"97862808713319515141694127029121532210",
"264849976257350988695928992307158390444",
"203857303069228396628091498281290300511",
"97862808713319515141694127029121532210",
"264849976257350988695928992307158390444",
"203857303069228396628091498281290300511"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fbb0701af9734cff13917a4b98b5ee9da2fde48d",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c"
},
"id": "CVE-2024-42121-6a0d29d2"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 768.0,
"function_hash": "1073612990968129447102067741282805066"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@59d99deb330af206a4541db0c4da8f73880fba03",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c",
"function": "write"
},
"id": "CVE-2024-42121-74db4dfa"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 768.0,
"function_hash": "1073612990968129447102067741282805066"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ae91ffbc8b8d942e3e7f188728cad557b7ed5ee4",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c",
"function": "write"
},
"id": "CVE-2024-42121-7be550ae"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 672.0,
"function_hash": "3176388473222692116018313083191135056"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@59d99deb330af206a4541db0c4da8f73880fba03",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c",
"function": "read"
},
"id": "CVE-2024-42121-86753125"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 768.0,
"function_hash": "1073612990968129447102067741282805066"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fbb0701af9734cff13917a4b98b5ee9da2fde48d",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c",
"function": "write"
},
"id": "CVE-2024-42121-8fe9d6f8"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"97862808713319515141694127029121532210",
"264849976257350988695928992307158390444",
"203857303069228396628091498281290300511",
"97862808713319515141694127029121532210",
"264849976257350988695928992307158390444",
"203857303069228396628091498281290300511"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b5b8837d066cc182ff69fb5629ad32ade5484567",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c"
},
"id": "CVE-2024-42121-940f64b7"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 672.0,
"function_hash": "3176388473222692116018313083191135056"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9933eca6ada0cd612e19522e7a319bcef464c0eb",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c",
"function": "read"
},
"id": "CVE-2024-42121-955fe4ae"
},
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"length": 672.0,
"function_hash": "3176388473222692116018313083191135056"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b5b8837d066cc182ff69fb5629ad32ade5484567",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c",
"function": "read"
},
"id": "CVE-2024-42121-bd48bcc1"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"97862808713319515141694127029121532210",
"264849976257350988695928992307158390444",
"203857303069228396628091498281290300511",
"97862808713319515141694127029121532210",
"264849976257350988695928992307158390444",
"203857303069228396628091498281290300511"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ae91ffbc8b8d942e3e7f188728cad557b7ed5ee4",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c"
},
"id": "CVE-2024-42121-c7cb2a48"
},
{
"signature_type": "Line",
"deprecated": false,
"digest": {
"line_hashes": [
"97862808713319515141694127029121532210",
"264849976257350988695928992307158390444",
"203857303069228396628091498281290300511",
"97862808713319515141694127029121532210",
"264849976257350988695928992307158390444",
"203857303069228396628091498281290300511"
],
"threshold": 0.9
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a31ea49dc8064a557565725cf045944307476a6e",
"target": {
"file": "drivers/gpu/drm/amd/display/modules/hdcp/hdcp_ddc.c"
},
"id": "CVE-2024-42121-d27a19dd"
}
]