In the Linux kernel, the following vulnerability has been resolved:
mm: memcg: fix NULL pointer in memcgrouptrackforeigndirty_slowpath()
As commit 18365225f044 ("hwpoison, memcg: forcibly uncharge LRU pages"), hwpoison will forcibly uncharg a LRU hwpoisoned page, the foliomemcg could be NULl, then, memcgrouptrackforeigndirtyslowpath() could occurs a NULL pointer dereference, let's do not record the foreign writebacks for folio memcg is null in memcgrouptrackforeigndirty() to fix it.
[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"300394261157996467525733584220561185595",
"118866079671317567635111895699253762909",
"15327853071378377795231784469838533723",
"109960422713247481038800930875731331006",
"115128572421281500259202489907028728515",
"201873156707754112668084320176493256054",
"203661336135103990660693348220089746111"
]
},
"signature_version": "v1",
"id": "CVE-2023-52939-03ddd755",
"target": {
"file": "include/linux/memcontrol.h"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ac86f547ca1002aec2ef66b9e64d03f45bbbfbb9",
"deprecated": false
},
{
"digest": {
"length": 194.0,
"function_hash": "149287717843805627845241527918475198024"
},
"signature_version": "v1",
"id": "CVE-2023-52939-7e0a02bb",
"target": {
"file": "include/linux/memcontrol.h",
"function": "mem_cgroup_track_foreign_dirty"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b79ba5953f6fdc5559389ad415620bffc24f024b",
"deprecated": false
},
{
"digest": {
"length": 194.0,
"function_hash": "149287717843805627845241527918475198024"
},
"signature_version": "v1",
"id": "CVE-2023-52939-c19e60dc",
"target": {
"file": "include/linux/memcontrol.h",
"function": "mem_cgroup_track_foreign_dirty"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ac86f547ca1002aec2ef66b9e64d03f45bbbfbb9",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"300394261157996467525733584220561185595",
"118866079671317567635111895699253762909",
"15327853071378377795231784469838533723",
"109960422713247481038800930875731331006",
"115128572421281500259202489907028728515",
"201873156707754112668084320176493256054",
"203661336135103990660693348220089746111"
]
},
"signature_version": "v1",
"id": "CVE-2023-52939-da749dfe",
"target": {
"file": "include/linux/memcontrol.h"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b79ba5953f6fdc5559389ad415620bffc24f024b",
"deprecated": false
}
]