In the Linux kernel, the following vulnerability has been resolved:
drm/panthor: Fix race when converting group handle to group object
XArray provides it's own internal lock which protects the internal array when entries are being simultaneously added and removed. However there is still a race between retrieving the pointer from the XArray and incrementing the reference count.
To avoid this race simply hold the internal XArray lock when incrementing the reference count, this ensures there cannot be a racing call to xa_erase().
[
{
"id": "CVE-2024-50174-00df2eb8",
"deprecated": false,
"digest": {
"length": 1507.0,
"function_hash": "211646402064077275206349609467847957374"
},
"signature_version": "v1",
"target": {
"function": "panthor_job_create",
"file": "drivers/gpu/drm/panthor/panthor_sched.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@44742138d151c3a945460ae7beff8ae45ac0bf58"
},
{
"id": "CVE-2024-50174-02bb6ebe",
"deprecated": false,
"digest": {
"length": 1507.0,
"function_hash": "211646402064077275206349609467847957374"
},
"signature_version": "v1",
"target": {
"function": "panthor_job_create",
"file": "drivers/gpu/drm/panthor/panthor_sched.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cac075706f298948898b1f63e81709df42afa75d"
},
{
"id": "CVE-2024-50174-4fa03112",
"deprecated": false,
"digest": {
"length": 642.0,
"function_hash": "203261281003738599118024673012940557793"
},
"signature_version": "v1",
"target": {
"function": "panthor_group_get_state",
"file": "drivers/gpu/drm/panthor/panthor_sched.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cac075706f298948898b1f63e81709df42afa75d"
},
{
"id": "CVE-2024-50174-5c03c2bf",
"deprecated": false,
"digest": {
"length": 1507.0,
"function_hash": "211646402064077275206349609467847957374"
},
"signature_version": "v1",
"target": {
"function": "panthor_job_create",
"file": "drivers/gpu/drm/panthor/panthor_sched.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8a585d553c11965332d7a2d74e79ef92a42bfc87"
},
{
"id": "CVE-2024-50174-5d07f562",
"deprecated": false,
"digest": {
"line_hashes": [
"23353691112940290813127095340522365833",
"145681316470060315675553868623659905520",
"26785367453219774420000790589266842358",
"229777378135999340935290565509006260241",
"107142716132224680017294312465406284786",
"225660546527429569741790141363513756321",
"294684081933616369049371737392856381259",
"331785636225744790923484191728930782286",
"74803739871127622410592770642744803337",
"24936509617732054260964871945772744100",
"42162725458663974469504292494306898922"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/panthor/panthor_sched.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8a585d553c11965332d7a2d74e79ef92a42bfc87"
},
{
"id": "CVE-2024-50174-6dc6f791",
"deprecated": false,
"digest": {
"length": 642.0,
"function_hash": "203261281003738599118024673012940557793"
},
"signature_version": "v1",
"target": {
"function": "panthor_group_get_state",
"file": "drivers/gpu/drm/panthor/panthor_sched.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8a585d553c11965332d7a2d74e79ef92a42bfc87"
},
{
"id": "CVE-2024-50174-b1cb9593",
"deprecated": false,
"digest": {
"length": 642.0,
"function_hash": "203261281003738599118024673012940557793"
},
"signature_version": "v1",
"target": {
"function": "panthor_group_get_state",
"file": "drivers/gpu/drm/panthor/panthor_sched.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@44742138d151c3a945460ae7beff8ae45ac0bf58"
},
{
"id": "CVE-2024-50174-b40f0b78",
"deprecated": false,
"digest": {
"line_hashes": [
"23353691112940290813127095340522365833",
"145681316470060315675553868623659905520",
"26785367453219774420000790589266842358",
"229777378135999340935290565509006260241",
"107142716132224680017294312465406284786",
"225660546527429569741790141363513756321",
"294684081933616369049371737392856381259",
"331785636225744790923484191728930782286",
"74803739871127622410592770642744803337",
"24936509617732054260964871945772744100",
"42162725458663974469504292494306898922"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/panthor/panthor_sched.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cac075706f298948898b1f63e81709df42afa75d"
},
{
"id": "CVE-2024-50174-ce9ca105",
"deprecated": false,
"digest": {
"line_hashes": [
"23353691112940290813127095340522365833",
"145681316470060315675553868623659905520",
"26785367453219774420000790589266842358",
"229777378135999340935290565509006260241",
"107142716132224680017294312465406284786",
"225660546527429569741790141363513756321",
"294684081933616369049371737392856381259",
"331785636225744790923484191728930782286",
"74803739871127622410592770642744803337",
"24936509617732054260964871945772744100",
"42162725458663974469504292494306898922"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/panthor/panthor_sched.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@44742138d151c3a945460ae7beff8ae45ac0bf58"
}
]