In the Linux kernel, the following vulnerability has been resolved:
drm/vboxvideo: Replace fake VLA at end of vbvamousepointer_shape with real VLA
Replace the fake VLA at end of the vbvamousepointer_shape shape with a real VLA to fix a "memcpy: detected field-spanning write error" warning:
[ 13.319813] memcpy: detected field-spanning write (size 16896) of single field "p->data" at drivers/gpu/drm/vboxvideo/hgsmibase.c:154 (size 4) [ 13.319841] WARNING: CPU: 0 PID: 1105 at drivers/gpu/drm/vboxvideo/hgsmibase.c:154 hgsmiupdatepointershape+0x192/0x1c0 [vboxvideo] [ 13.320038] Call Trace: [ 13.320173] hgsmiupdatepointershape [vboxvideo] [ 13.320184] vboxcursoratomic_update [vboxvideo]
Note as mentioned in the added comment it seems the original length calculation for the allocated and send hgsmi buffer is 4 bytes too large. Changing this is not the goal of this patch, so this behavior is kept.
[
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d92b90f9a54d9300a6e883258e79f36dab53bfae",
"digest": {
"threshold": 0.9,
"line_hashes": [
"171603345732851726430764311646718660364",
"278195234055280350990090124361140339550",
"325286008963341914311066786070433876042",
"167115389849893280278117530714388837429"
]
},
"id": "CVE-2024-50134-10076098",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/vboxvideo/vboxvideo.h"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@75f828e944dacaac8870418461d3d48a1ecf2331",
"digest": {
"function_hash": "284490217425943306656599037298046961894",
"length": 954.0
},
"id": "CVE-2024-50134-2b24a4c0",
"signature_version": "v1",
"target": {
"function": "hgsmi_update_pointer_shape",
"file": "drivers/gpu/drm/vboxvideo/hgsmi_base.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fae9dc12c61ce23cf29d09824a741b7b1ff8f01f",
"digest": {
"function_hash": "284490217425943306656599037298046961894",
"length": 954.0
},
"id": "CVE-2024-50134-36636858",
"signature_version": "v1",
"target": {
"function": "hgsmi_update_pointer_shape",
"file": "drivers/gpu/drm/vboxvideo/hgsmi_base.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@34a422274b693507025a7db21519865d1862afcb",
"digest": {
"threshold": 0.9,
"line_hashes": [
"171603345732851726430764311646718660364",
"278195234055280350990090124361140339550",
"325286008963341914311066786070433876042",
"167115389849893280278117530714388837429"
]
},
"id": "CVE-2024-50134-530eff64",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/vboxvideo/vboxvideo.h"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fae9dc12c61ce23cf29d09824a741b7b1ff8f01f",
"digest": {
"threshold": 0.9,
"line_hashes": [
"180467408431841087560170124943307574953",
"1751416047054040930973071157840285296",
"272972885312900721751180873873855411543",
"246819647682520896763076275626270735471"
]
},
"id": "CVE-2024-50134-5c1b6890",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/vboxvideo/hgsmi_base.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@75f828e944dacaac8870418461d3d48a1ecf2331",
"digest": {
"threshold": 0.9,
"line_hashes": [
"180467408431841087560170124943307574953",
"1751416047054040930973071157840285296",
"272972885312900721751180873873855411543",
"246819647682520896763076275626270735471"
]
},
"id": "CVE-2024-50134-6b2999a1",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/vboxvideo/hgsmi_base.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@34a422274b693507025a7db21519865d1862afcb",
"digest": {
"function_hash": "284490217425943306656599037298046961894",
"length": 954.0
},
"id": "CVE-2024-50134-6f93e999",
"signature_version": "v1",
"target": {
"function": "hgsmi_update_pointer_shape",
"file": "drivers/gpu/drm/vboxvideo/hgsmi_base.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@34a422274b693507025a7db21519865d1862afcb",
"digest": {
"threshold": 0.9,
"line_hashes": [
"180467408431841087560170124943307574953",
"1751416047054040930973071157840285296",
"272972885312900721751180873873855411543",
"246819647682520896763076275626270735471"
]
},
"id": "CVE-2024-50134-70d623ed",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/vboxvideo/hgsmi_base.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d92b90f9a54d9300a6e883258e79f36dab53bfae",
"digest": {
"function_hash": "284490217425943306656599037298046961894",
"length": 954.0
},
"id": "CVE-2024-50134-7949cf9f",
"signature_version": "v1",
"target": {
"function": "hgsmi_update_pointer_shape",
"file": "drivers/gpu/drm/vboxvideo/hgsmi_base.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9eb32bd23bbcec44bcbef27b7f282b7a7f3d0391",
"digest": {
"function_hash": "284490217425943306656599037298046961894",
"length": 954.0
},
"id": "CVE-2024-50134-7bcc33f9",
"signature_version": "v1",
"target": {
"function": "hgsmi_update_pointer_shape",
"file": "drivers/gpu/drm/vboxvideo/hgsmi_base.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d92b90f9a54d9300a6e883258e79f36dab53bfae",
"digest": {
"threshold": 0.9,
"line_hashes": [
"180467408431841087560170124943307574953",
"1751416047054040930973071157840285296",
"272972885312900721751180873873855411543",
"246819647682520896763076275626270735471"
]
},
"id": "CVE-2024-50134-86818748",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/vboxvideo/hgsmi_base.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7458a6cdaebb3dc59af8578ee354fae78a154c4a",
"digest": {
"function_hash": "284490217425943306656599037298046961894",
"length": 954.0
},
"id": "CVE-2024-50134-95b92b86",
"signature_version": "v1",
"target": {
"function": "hgsmi_update_pointer_shape",
"file": "drivers/gpu/drm/vboxvideo/hgsmi_base.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02c86c5d5ef4bbba17d38859c74872825f536617",
"digest": {
"threshold": 0.9,
"line_hashes": [
"180467408431841087560170124943307574953",
"1751416047054040930973071157840285296",
"272972885312900721751180873873855411543",
"246819647682520896763076275626270735471"
]
},
"id": "CVE-2024-50134-bb384bfe",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/vboxvideo/hgsmi_base.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9eb32bd23bbcec44bcbef27b7f282b7a7f3d0391",
"digest": {
"threshold": 0.9,
"line_hashes": [
"180467408431841087560170124943307574953",
"1751416047054040930973071157840285296",
"272972885312900721751180873873855411543",
"246819647682520896763076275626270735471"
]
},
"id": "CVE-2024-50134-bb8b4548",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/vboxvideo/hgsmi_base.c"
}
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02c86c5d5ef4bbba17d38859c74872825f536617",
"digest": {
"function_hash": "284490217425943306656599037298046961894",
"length": 954.0
},
"id": "CVE-2024-50134-cf864e7e",
"signature_version": "v1",
"target": {
"function": "hgsmi_update_pointer_shape",
"file": "drivers/gpu/drm/vboxvideo/hgsmi_base.c"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fae9dc12c61ce23cf29d09824a741b7b1ff8f01f",
"digest": {
"threshold": 0.9,
"line_hashes": [
"171603345732851726430764311646718660364",
"278195234055280350990090124361140339550",
"325286008963341914311066786070433876042",
"167115389849893280278117530714388837429"
]
},
"id": "CVE-2024-50134-cfdab981",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/vboxvideo/vboxvideo.h"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@02c86c5d5ef4bbba17d38859c74872825f536617",
"digest": {
"threshold": 0.9,
"line_hashes": [
"171603345732851726430764311646718660364",
"278195234055280350990090124361140339550",
"325286008963341914311066786070433876042",
"167115389849893280278117530714388837429"
]
},
"id": "CVE-2024-50134-ddc4416b",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/vboxvideo/vboxvideo.h"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9eb32bd23bbcec44bcbef27b7f282b7a7f3d0391",
"digest": {
"threshold": 0.9,
"line_hashes": [
"171603345732851726430764311646718660364",
"278195234055280350990090124361140339550",
"325286008963341914311066786070433876042",
"167115389849893280278117530714388837429"
]
},
"id": "CVE-2024-50134-e4af2b41",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/vboxvideo/vboxvideo.h"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@75f828e944dacaac8870418461d3d48a1ecf2331",
"digest": {
"threshold": 0.9,
"line_hashes": [
"171603345732851726430764311646718660364",
"278195234055280350990090124361140339550",
"325286008963341914311066786070433876042",
"167115389849893280278117530714388837429"
]
},
"id": "CVE-2024-50134-f4a6d068",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/vboxvideo/vboxvideo.h"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7458a6cdaebb3dc59af8578ee354fae78a154c4a",
"digest": {
"threshold": 0.9,
"line_hashes": [
"171603345732851726430764311646718660364",
"278195234055280350990090124361140339550",
"325286008963341914311066786070433876042",
"167115389849893280278117530714388837429"
]
},
"id": "CVE-2024-50134-f6fdebcc",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/vboxvideo/vboxvideo.h"
}
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7458a6cdaebb3dc59af8578ee354fae78a154c4a",
"digest": {
"threshold": 0.9,
"line_hashes": [
"180467408431841087560170124943307574953",
"1751416047054040930973071157840285296",
"272972885312900721751180873873855411543",
"246819647682520896763076275626270735471"
]
},
"id": "CVE-2024-50134-f826b9c5",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/vboxvideo/hgsmi_base.c"
}
}
]