In the Linux kernel, the following vulnerability has been resolved:
drm/i915: Fix a memory leak with reused mmap_offset
drmvmanodeallow() and drmvmanoderevoke() should be called in balanced pairs. We call drmvmanodeallow() once per-file everytime a user calls mmapoffset, but only call drmvmanoderevoke once per-file on each mmapoffset. As the mmapoffset is reused by the client, the per-file vmcount may remain non-zero and the rbtree leaked.
Call drmvmanodeallowonce() instead to prevent that memory leak.
[
{
"id": "CVE-2023-53002-724373e3",
"target": {
"file": "drivers/gpu/drm/i915/gem/i915_gem_mman.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"301111842374090841129726930120188675671",
"137372254411061305230934308942626613489",
"294709506112718102426541225014247308899",
"163027921525229933455630442354670568382"
],
"threshold": 0.9
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0bdc4b4ba7206c452ee81c82fa66e39d0e1780fb",
"signature_type": "Line"
},
{
"id": "CVE-2023-53002-86f4aec6",
"target": {
"file": "drivers/gpu/drm/i915/gem/i915_gem_mman.c"
},
"signature_version": "v1",
"digest": {
"line_hashes": [
"301111842374090841129726930120188675671",
"137372254411061305230934308942626613489",
"294709506112718102426541225014247308899",
"163027921525229933455630442354670568382"
],
"threshold": 0.9
},
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0220e4fe178c3390eb0291cdb34912d66972db8a",
"signature_type": "Line"
}
]