In the Linux kernel, the following vulnerability has been resolved:
i2c: dev: check return value when calling devsetname()
If devsetname() fails, the devname() is null, check the return value of devset_name() to avoid the null-ptr-deref.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49046.json",
"cna_assigner": "Linux"
}"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49046.json"
[
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c74d77a2d07744147d734138acd6ce9dba715e5d",
"digest": {
"threshold": 0.9,
"line_hashes": [
"185548663229600998534778084380984561990",
"49370947078224723660113542244208998745",
"95795975531241458148710051795916191262",
"184093068335468685431722347981954146173",
"114672541813268910163395247188209118385",
"325143219512596535856866076516635185881",
"45032096754048778618870245012994631954",
"196529550102500834115947321049111920091",
"189641871413517890386906142872785870750",
"160391265134571172358415249283163481614",
"286810693373844822385416342860991342667"
]
},
"target": {
"file": "drivers/i2c/i2c-dev.c"
},
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49046-24cff16c"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@993eb48fa199b5f476df8204e652eff63dd19361",
"digest": {
"threshold": 0.9,
"line_hashes": [
"185548663229600998534778084380984561990",
"49370947078224723660113542244208998745",
"95795975531241458148710051795916191262",
"184093068335468685431722347981954146173",
"114672541813268910163395247188209118385",
"325143219512596535856866076516635185881",
"45032096754048778618870245012994631954",
"196529550102500834115947321049111920091",
"189641871413517890386906142872785870750",
"160391265134571172358415249283163481614",
"286810693373844822385416342860991342667"
]
},
"target": {
"file": "drivers/i2c/i2c-dev.c"
},
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49046-4017a7fa"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@993eb48fa199b5f476df8204e652eff63dd19361",
"digest": {
"function_hash": "324712625806958140796689567395869630814",
"length": 803.0
},
"target": {
"file": "drivers/i2c/i2c-dev.c",
"function": "i2cdev_attach_adapter"
},
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49046-5b0115cc"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c74d77a2d07744147d734138acd6ce9dba715e5d",
"digest": {
"function_hash": "324712625806958140796689567395869630814",
"length": 803.0
},
"target": {
"file": "drivers/i2c/i2c-dev.c",
"function": "i2cdev_attach_adapter"
},
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49046-8aad0d2a"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2",
"digest": {
"function_hash": "12324781704394975413606456834412933516",
"length": 812.0
},
"target": {
"file": "drivers/i2c/i2c-dev.c",
"function": "i2cdev_attach_adapter"
},
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49046-97751386"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2f345bb14ad4744950499ff222e2899209297afa",
"digest": {
"threshold": 0.9,
"line_hashes": [
"185548663229600998534778084380984561990",
"49370947078224723660113542244208998745",
"95795975531241458148710051795916191262",
"184093068335468685431722347981954146173",
"114672541813268910163395247188209118385",
"325143219512596535856866076516635185881",
"45032096754048778618870245012994631954",
"196529550102500834115947321049111920091",
"189641871413517890386906142872785870750",
"160391265134571172358415249283163481614",
"286810693373844822385416342860991342667"
]
},
"target": {
"file": "drivers/i2c/i2c-dev.c"
},
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49046-a48da888"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2e539b17d4cbe5fb8b5152dd9a6e4a8828f97db2",
"digest": {
"threshold": 0.9,
"line_hashes": [
"185548663229600998534778084380984561990",
"49370947078224723660113542244208998745",
"95795975531241458148710051795916191262",
"184093068335468685431722347981954146173",
"114672541813268910163395247188209118385",
"325143219512596535856866076516635185881",
"89186537861674044440101364852807152978",
"296954507570207384168933142318367957484",
"259079113849127592581032921224269220937",
"201538742499389911030385232795226074420",
"250731973205634735246643794387859074777",
"286810693373844822385416342860991342667"
]
},
"target": {
"file": "drivers/i2c/i2c-dev.c"
},
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49046-b56864d4"
},
{
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2f345bb14ad4744950499ff222e2899209297afa",
"digest": {
"function_hash": "324712625806958140796689567395869630814",
"length": 803.0
},
"target": {
"file": "drivers/i2c/i2c-dev.c",
"function": "i2cdev_attach_adapter"
},
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49046-b5aeb341"
}
]