In the Linux kernel, the following vulnerability has been resolved:
drm/rockchip: vop: fix possible null-ptr-deref in vop_bind()
It will cause null-ptr-deref in resourcesize(), if platformgetresource() returns NULL, move calling resourcesize() after devmioremapresource() that will check 'res' to avoid null-ptr-deref.
[
{
"signature_type": "Function",
"digest": {
"function_hash": "184838726584171284895099095837731063706",
"length": 1978.0
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c",
"function": "vop_bind"
},
"signature_version": "v1",
"id": "CVE-2022-49491-0333b854",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@769c53bb6116d0eaec0f1fe4ec4b27a74465cad1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"121147021672497001197251850380738184992",
"267897663721490500546186843674833429622",
"263186369009485652836812249282999475208"
]
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"signature_version": "v1",
"id": "CVE-2022-49491-0a9ed704",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ecfa52654d0c9c333c1fe1611f47105f6bce9591"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"296729961628878904811714531257560395928",
"199828396572615655529685925398467852240",
"154634043806232694637214726151802551344"
]
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"signature_version": "v1",
"id": "CVE-2022-49491-18a9e336",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9b4599665e437de8a1152799c34841b799a2e1c"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "184838726584171284895099095837731063706",
"length": 1978.0
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c",
"function": "vop_bind"
},
"signature_version": "v1",
"id": "CVE-2022-49491-1f6b1ad8",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8c242908ad15bbd604d3bcb54961b7d454c43f8"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"296729961628878904811714531257560395928",
"199828396572615655529685925398467852240",
"154634043806232694637214726151802551344"
]
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"signature_version": "v1",
"id": "CVE-2022-49491-3b4d6129",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ff986e057bf28e2f7690dad410768b2270f9453"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "244848703578373304055040314499225254107",
"length": 1549.0
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c",
"function": "vop_bind"
},
"signature_version": "v1",
"id": "CVE-2022-49491-4c537a72",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fcd6a886443730c39170b8383411e52118aec0a3"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"121147021672497001197251850380738184992",
"267897663721490500546186843674833429622",
"263186369009485652836812249282999475208"
]
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"signature_version": "v1",
"id": "CVE-2022-49491-661c4cbd",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3451852312303d54a003c73bd0ae39cebb960bd5"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "184838726584171284895099095837731063706",
"length": 1978.0
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c",
"function": "vop_bind"
},
"signature_version": "v1",
"id": "CVE-2022-49491-6993d850",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ecfa52654d0c9c333c1fe1611f47105f6bce9591"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"296729961628878904811714531257560395928",
"199828396572615655529685925398467852240",
"154634043806232694637214726151802551344"
]
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"signature_version": "v1",
"id": "CVE-2022-49491-7f660b9c",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@452922955df215a417c80d09dab72bbc667a1861"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "309587087769635279857597252112193595083",
"length": 1520.0
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c",
"function": "vop_bind"
},
"signature_version": "v1",
"id": "CVE-2022-49491-813beafd",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ff986e057bf28e2f7690dad410768b2270f9453"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"121147021672497001197251850380738184992",
"267897663721490500546186843674833429622",
"263186369009485652836812249282999475208"
]
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"signature_version": "v1",
"id": "CVE-2022-49491-92221e0d",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8c242908ad15bbd604d3bcb54961b7d454c43f8"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "244848703578373304055040314499225254107",
"length": 1549.0
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c",
"function": "vop_bind"
},
"signature_version": "v1",
"id": "CVE-2022-49491-b958608d",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@452922955df215a417c80d09dab72bbc667a1861"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"121147021672497001197251850380738184992",
"267897663721490500546186843674833429622",
"263186369009485652836812249282999475208"
]
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"signature_version": "v1",
"id": "CVE-2022-49491-bfda74b1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b54926bd558d97c888c3d2d87886f3c159d3254a"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"121147021672497001197251850380738184992",
"267897663721490500546186843674833429622",
"263186369009485652836812249282999475208"
]
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"signature_version": "v1",
"id": "CVE-2022-49491-c046d2c0",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@769c53bb6116d0eaec0f1fe4ec4b27a74465cad1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "184838726584171284895099095837731063706",
"length": 1978.0
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c",
"function": "vop_bind"
},
"signature_version": "v1",
"id": "CVE-2022-49491-c8ce6f42",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b54926bd558d97c888c3d2d87886f3c159d3254a"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "184838726584171284895099095837731063706",
"length": 1978.0
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c",
"function": "vop_bind"
},
"signature_version": "v1",
"id": "CVE-2022-49491-d33dff80",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3451852312303d54a003c73bd0ae39cebb960bd5"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "61287133334781127108519655797117288891",
"length": 1698.0
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c",
"function": "vop_bind"
},
"signature_version": "v1",
"id": "CVE-2022-49491-e144bfec",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9b4599665e437de8a1152799c34841b799a2e1c"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"296729961628878904811714531257560395928",
"199828396572615655529685925398467852240",
"154634043806232694637214726151802551344"
]
},
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"signature_version": "v1",
"id": "CVE-2022-49491-e4fb5711",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fcd6a886443730c39170b8383411e52118aec0a3"
}
]