In the Linux kernel, the following vulnerability has been resolved:
ALSA: aoa: i2sbus: fix possible memory leak in i2sbusadddev()
devsetname() in soundbusaddone() allocates memory for name, it need be freed when ofdeviceregister() fails, call soundbusdevput() to give up the reference that hold in deviceinitialize(), so that it can be freed in kobjectcleanup() when the refcount hit to 0. And other resources are also freed in i2sbusreleasedev(), so it can return 0 directly.
[
{
"signature_type": "Function",
"digest": {
"function_hash": "132877404394933860600432764707919955495",
"length": 4256.0
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c",
"function": "i2sbus_add_dev"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fd410d24665e4efb3c1796797181265efe553e9c",
"id": "CVE-2022-50431-1fb576a3",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"106678207672519930027375566147900788713",
"25657982409164815658956844002405445193",
"209382586256815599665239920095014256513",
"267415445552949908412805411516456645443"
]
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fd410d24665e4efb3c1796797181265efe553e9c",
"id": "CVE-2022-50431-2c59c18f",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "100054897132190757160056817786537489502",
"length": 4260.0
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c",
"function": "i2sbus_add_dev"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ce6fd1c382a38b75557db85a2fe99d285540a03d",
"id": "CVE-2022-50431-324a301d",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"106678207672519930027375566147900788713",
"25657982409164815658956844002405445193",
"209382586256815599665239920095014256513",
"267415445552949908412805411516456645443"
]
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@027fee10e3a400cf6f3237374a1248da1082807b",
"id": "CVE-2022-50431-36bd064e",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"106678207672519930027375566147900788713",
"25657982409164815658956844002405445193",
"209382586256815599665239920095014256513",
"267415445552949908412805411516456645443"
]
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e81d7826b8f40430a1ea1b330e24d9a9eb4512c4",
"id": "CVE-2022-50431-3a278841",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "132877404394933860600432764707919955495",
"length": 4256.0
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c",
"function": "i2sbus_add_dev"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@802532a50acf501fdafe38a84ca2aa886d68af68",
"id": "CVE-2022-50431-453c29fa",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"106678207672519930027375566147900788713",
"25657982409164815658956844002405445193",
"209382586256815599665239920095014256513",
"267415445552949908412805411516456645443"
]
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c7524279c8ddc7dbf3463bec70e0289097959944",
"id": "CVE-2022-50431-4a1f6a52",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"106678207672519930027375566147900788713",
"25657982409164815658956844002405445193",
"209382586256815599665239920095014256513",
"267415445552949908412805411516456645443"
]
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ce6fd1c382a38b75557db85a2fe99d285540a03d",
"id": "CVE-2022-50431-54c87057",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"106678207672519930027375566147900788713",
"25657982409164815658956844002405445193",
"209382586256815599665239920095014256513",
"267415445552949908412805411516456645443"
]
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@802532a50acf501fdafe38a84ca2aa886d68af68",
"id": "CVE-2022-50431-83204bee",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "100054897132190757160056817786537489502",
"length": 4260.0
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c",
"function": "i2sbus_add_dev"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e81d7826b8f40430a1ea1b330e24d9a9eb4512c4",
"id": "CVE-2022-50431-b2d59628",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "223641123143252649547159188959038571655",
"length": 4254.0
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c",
"function": "i2sbus_add_dev"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5bdea674534153110b90d70b02f2fbaf48b2c0eb",
"id": "CVE-2022-50431-bac578a4",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"106678207672519930027375566147900788713",
"25657982409164815658956844002405445193",
"209382586256815599665239920095014256513",
"267415445552949908412805411516456645443"
]
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a4c8482e370d697738a78dcd7bf2780832cb712",
"id": "CVE-2022-50431-be52c767",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"106678207672519930027375566147900788713",
"25657982409164815658956844002405445193",
"209382586256815599665239920095014256513",
"267415445552949908412805411516456645443"
]
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5bdea674534153110b90d70b02f2fbaf48b2c0eb",
"id": "CVE-2022-50431-cfdaf989",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "100054897132190757160056817786537489502",
"length": 4260.0
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c",
"function": "i2sbus_add_dev"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a4c8482e370d697738a78dcd7bf2780832cb712",
"id": "CVE-2022-50431-d5d78eba",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "100054897132190757160056817786537489502",
"length": 4260.0
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c",
"function": "i2sbus_add_dev"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c7524279c8ddc7dbf3463bec70e0289097959944",
"id": "CVE-2022-50431-f57c6ab5",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "132877404394933860600432764707919955495",
"length": 4256.0
},
"target": {
"file": "sound/aoa/soundbus/i2sbus/core.c",
"function": "i2sbus_add_dev"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@027fee10e3a400cf6f3237374a1248da1082807b",
"id": "CVE-2022-50431-fed9e626",
"deprecated": false,
"signature_version": "v1"
}
]