In the Linux kernel, the following vulnerability has been resolved:
drm/radeon: fix a possible null pointer dereference
In radeonfpnativemode(), the return value of drmmodeduplicate() is assigned to mode, which will lead to a NULL pointer dereference on failure of drmmode_duplicate(). Add a check to avoid npd.
The failure status of drmcvtmode() on the other path is checked too.
[
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c",
"function": "radeon_fp_native_mode"
},
"signature_type": "Function",
"digest": {
"length": 718.0,
"function_hash": "50255000518586416405435935630806012091"
},
"id": "CVE-2022-48710-09eb3f13",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@28fd384c78d7d8ed8af0d086d778c3e438ba7f60"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c",
"function": "radeon_fp_native_mode"
},
"signature_type": "Function",
"digest": {
"length": 718.0,
"function_hash": "50255000518586416405435935630806012091"
},
"id": "CVE-2022-48710-0ffe8b65",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e938d24f0b7392e142b8aa434f18590d99dbe479"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"143771719937603481667340013906101912156",
"209284412227561010432947133955609158092",
"264539314440900876013973086624414189179",
"260640671311897216059815833053714852753",
"19008661916011379632179265161427821077",
"174424723901746249167254712378263990902",
"165559172793494807526379110287830075810",
"238448584789884091288052016944741964671"
]
},
"id": "CVE-2022-48710-106dbbd8",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fee8ae0a0bb66eb7730c22f44fbd7203f63c2eab"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"143771719937603481667340013906101912156",
"209284412227561010432947133955609158092",
"264539314440900876013973086624414189179",
"260640671311897216059815833053714852753",
"19008661916011379632179265161427821077",
"174424723901746249167254712378263990902",
"165559172793494807526379110287830075810",
"238448584789884091288052016944741964671"
]
},
"id": "CVE-2022-48710-1f04b6da",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e938d24f0b7392e142b8aa434f18590d99dbe479"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"143771719937603481667340013906101912156",
"209284412227561010432947133955609158092",
"264539314440900876013973086624414189179",
"260640671311897216059815833053714852753",
"19008661916011379632179265161427821077",
"174424723901746249167254712378263990902",
"165559172793494807526379110287830075810",
"238448584789884091288052016944741964671"
]
},
"id": "CVE-2022-48710-33bb3de2",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@16a0f0b63c4c7eb46fc4c3f00bf2836e6ee46a9f"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"143771719937603481667340013906101912156",
"209284412227561010432947133955609158092",
"264539314440900876013973086624414189179",
"260640671311897216059815833053714852753",
"19008661916011379632179265161427821077",
"174424723901746249167254712378263990902",
"165559172793494807526379110287830075810",
"238448584789884091288052016944741964671"
]
},
"id": "CVE-2022-48710-446a8536",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@140d9807b96e1303f6f2675a7ae8710a2094bd17"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"143771719937603481667340013906101912156",
"209284412227561010432947133955609158092",
"264539314440900876013973086624414189179",
"260640671311897216059815833053714852753",
"19008661916011379632179265161427821077",
"174424723901746249167254712378263990902",
"165559172793494807526379110287830075810",
"238448584789884091288052016944741964671"
]
},
"id": "CVE-2022-48710-519e9b88",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7b7fba107b2c4ec7673d0f45bdbb9d1af697d9b9"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"143771719937603481667340013906101912156",
"209284412227561010432947133955609158092",
"264539314440900876013973086624414189179",
"260640671311897216059815833053714852753",
"19008661916011379632179265161427821077",
"174424723901746249167254712378263990902",
"165559172793494807526379110287830075810",
"238448584789884091288052016944741964671"
]
},
"id": "CVE-2022-48710-562384b4",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@28fd384c78d7d8ed8af0d086d778c3e438ba7f60"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c",
"function": "radeon_fp_native_mode"
},
"signature_type": "Function",
"digest": {
"length": 718.0,
"function_hash": "50255000518586416405435935630806012091"
},
"id": "CVE-2022-48710-56c1ff29",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@16a0f0b63c4c7eb46fc4c3f00bf2836e6ee46a9f"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"143771719937603481667340013906101912156",
"209284412227561010432947133955609158092",
"264539314440900876013973086624414189179",
"260640671311897216059815833053714852753",
"19008661916011379632179265161427821077",
"174424723901746249167254712378263990902",
"165559172793494807526379110287830075810",
"238448584789884091288052016944741964671"
]
},
"id": "CVE-2022-48710-828e8aac",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8a89bfeef9abe93371e3ea8796377f2d132eee29"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c",
"function": "radeon_fp_native_mode"
},
"signature_type": "Function",
"digest": {
"length": 718.0,
"function_hash": "50255000518586416405435935630806012091"
},
"id": "CVE-2022-48710-a70a6a97",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7b7fba107b2c4ec7673d0f45bdbb9d1af697d9b9"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c",
"function": "radeon_fp_native_mode"
},
"signature_type": "Function",
"digest": {
"length": 718.0,
"function_hash": "50255000518586416405435935630806012091"
},
"id": "CVE-2022-48710-a930378a",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a2b28708b645c5632dc93669ab06e97874c8244f"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c",
"function": "radeon_fp_native_mode"
},
"signature_type": "Function",
"digest": {
"length": 718.0,
"function_hash": "50255000518586416405435935630806012091"
},
"id": "CVE-2022-48710-af7df8d1",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fee8ae0a0bb66eb7730c22f44fbd7203f63c2eab"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c",
"function": "radeon_fp_native_mode"
},
"signature_type": "Function",
"digest": {
"length": 718.0,
"function_hash": "50255000518586416405435935630806012091"
},
"id": "CVE-2022-48710-c8e0838f",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8a89bfeef9abe93371e3ea8796377f2d132eee29"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c",
"function": "radeon_fp_native_mode"
},
"signature_type": "Function",
"digest": {
"length": 718.0,
"function_hash": "50255000518586416405435935630806012091"
},
"id": "CVE-2022-48710-ce192081",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b33f7d99c9226892c7794dc2500fae35966020c9"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c",
"function": "radeon_fp_native_mode"
},
"signature_type": "Function",
"digest": {
"length": 718.0,
"function_hash": "50255000518586416405435935630806012091"
},
"id": "CVE-2022-48710-db270221",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@140d9807b96e1303f6f2675a7ae8710a2094bd17"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"143771719937603481667340013906101912156",
"209284412227561010432947133955609158092",
"264539314440900876013973086624414189179",
"260640671311897216059815833053714852753",
"19008661916011379632179265161427821077",
"174424723901746249167254712378263990902",
"165559172793494807526379110287830075810",
"238448584789884091288052016944741964671"
]
},
"id": "CVE-2022-48710-e13ed0a6",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a2b28708b645c5632dc93669ab06e97874c8244f"
},
{
"target": {
"file": "drivers/gpu/drm/radeon/radeon_connectors.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"143771719937603481667340013906101912156",
"209284412227561010432947133955609158092",
"264539314440900876013973086624414189179",
"260640671311897216059815833053714852753",
"19008661916011379632179265161427821077",
"174424723901746249167254712378263990902",
"165559172793494807526379110287830075810",
"238448584789884091288052016944741964671"
]
},
"id": "CVE-2022-48710-eeb08f9f",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b33f7d99c9226892c7794dc2500fae35966020c9"
}
]