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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49491.json",
"cna_assigner": "Linux"
}[
{
"target": {
"function": "vop_bind",
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-0333b854",
"digest": {
"function_hash": "184838726584171284895099095837731063706",
"length": 1978.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@769c53bb6116d0eaec0f1fe4ec4b27a74465cad1",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-0a9ed704",
"digest": {
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"121147021672497001197251850380738184992",
"267897663721490500546186843674833429622",
"263186369009485652836812249282999475208"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ecfa52654d0c9c333c1fe1611f47105f6bce9591",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line"
},
{
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-18a9e336",
"digest": {
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"296729961628878904811714531257560395928",
"199828396572615655529685925398467852240",
"154634043806232694637214726151802551344"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9b4599665e437de8a1152799c34841b799a2e1c",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line"
},
{
"target": {
"function": "vop_bind",
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-1f6b1ad8",
"digest": {
"function_hash": "184838726584171284895099095837731063706",
"length": 1978.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8c242908ad15bbd604d3bcb54961b7d454c43f8",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-3b4d6129",
"digest": {
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"296729961628878904811714531257560395928",
"199828396572615655529685925398467852240",
"154634043806232694637214726151802551344"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ff986e057bf28e2f7690dad410768b2270f9453",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line"
},
{
"target": {
"function": "vop_bind",
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-4c537a72",
"digest": {
"function_hash": "244848703578373304055040314499225254107",
"length": 1549.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fcd6a886443730c39170b8383411e52118aec0a3",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-661c4cbd",
"digest": {
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"121147021672497001197251850380738184992",
"267897663721490500546186843674833429622",
"263186369009485652836812249282999475208"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3451852312303d54a003c73bd0ae39cebb960bd5",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line"
},
{
"target": {
"function": "vop_bind",
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-6993d850",
"digest": {
"function_hash": "184838726584171284895099095837731063706",
"length": 1978.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ecfa52654d0c9c333c1fe1611f47105f6bce9591",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-7f660b9c",
"digest": {
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"296729961628878904811714531257560395928",
"199828396572615655529685925398467852240",
"154634043806232694637214726151802551344"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@452922955df215a417c80d09dab72bbc667a1861",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line"
},
{
"target": {
"function": "vop_bind",
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-813beafd",
"digest": {
"function_hash": "309587087769635279857597252112193595083",
"length": 1520.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6ff986e057bf28e2f7690dad410768b2270f9453",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-92221e0d",
"digest": {
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"121147021672497001197251850380738184992",
"267897663721490500546186843674833429622",
"263186369009485652836812249282999475208"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f8c242908ad15bbd604d3bcb54961b7d454c43f8",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line"
},
{
"target": {
"function": "vop_bind",
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-b958608d",
"digest": {
"function_hash": "244848703578373304055040314499225254107",
"length": 1549.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@452922955df215a417c80d09dab72bbc667a1861",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-bfda74b1",
"digest": {
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"121147021672497001197251850380738184992",
"267897663721490500546186843674833429622",
"263186369009485652836812249282999475208"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b54926bd558d97c888c3d2d87886f3c159d3254a",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line"
},
{
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-c046d2c0",
"digest": {
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"121147021672497001197251850380738184992",
"267897663721490500546186843674833429622",
"263186369009485652836812249282999475208"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@769c53bb6116d0eaec0f1fe4ec4b27a74465cad1",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line"
},
{
"target": {
"function": "vop_bind",
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-c8ce6f42",
"digest": {
"function_hash": "184838726584171284895099095837731063706",
"length": 1978.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b54926bd558d97c888c3d2d87886f3c159d3254a",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"target": {
"function": "vop_bind",
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-d33dff80",
"digest": {
"function_hash": "184838726584171284895099095837731063706",
"length": 1978.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3451852312303d54a003c73bd0ae39cebb960bd5",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"target": {
"function": "vop_bind",
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-e144bfec",
"digest": {
"function_hash": "61287133334781127108519655797117288891",
"length": 1698.0
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9b4599665e437de8a1152799c34841b799a2e1c",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function"
},
{
"target": {
"file": "drivers/gpu/drm/rockchip/rockchip_drm_vop.c"
},
"id": "CVE-2022-49491-e4fb5711",
"digest": {
"line_hashes": [
"209554955327633242141392868038051765844",
"159435326532018601332084109721397723699",
"19250504513392839301692146912118964174",
"154437650485685265401629713660638997226",
"296729961628878904811714531257560395928",
"199828396572615655529685925398467852240",
"154634043806232694637214726151802551344"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fcd6a886443730c39170b8383411e52118aec0a3",
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49491.json"