In the Linux kernel, the following vulnerability has been resolved:
iio: adc: at91adc: fix possible memory leak in at91adcallocatetrigger()
If iiotriggerregister() returns error, it should call iiotriggerfree() to give up the reference that hold in iiotriggeralloc(), so that it can call iiotrigrelease() to free memory when the refcount hit to 0.
{ "vanir_signatures": [ { "signature_version": "v1", "digest": { "threshold": 0.9, "line_hashes": [ "336083302759360188710661519878843064236", "305382590067483641522508951300386943882", "10088184195472237062870575275905149310", "197433116086330964313158482876249795164", "308183302418434370662823374382166021524" ] }, "deprecated": false, "id": "CVE-2022-49794-02fcceb7", "target": { "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c3ce73f60599a483dca7becd4112508833a40ef9" }, { "signature_version": "v1", "digest": { "threshold": 0.9, "line_hashes": [ "336083302759360188710661519878843064236", "305382590067483641522508951300386943882", "10088184195472237062870575275905149310", "197433116086330964313158482876249795164", "308183302418434370662823374382166021524" ] }, "deprecated": false, "id": "CVE-2022-49794-0af6eb10", "target": { "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c27a3b6ba23350708cf5ab9962337447b51eb76d" }, { "signature_version": "v1", "digest": { "length": 366.0, "function_hash": "180156512706484646316353038447438936061" }, "deprecated": false, "id": "CVE-2022-49794-21c25cf5", "target": { "function": "at91_adc_allocate_trigger", "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@65f20301607d07ee279b0804d11a05a62a6c1a1c" }, { "signature_version": "v1", "digest": { "threshold": 0.9, "line_hashes": [ "336083302759360188710661519878843064236", "305382590067483641522508951300386943882", "10088184195472237062870575275905149310", "197433116086330964313158482876249795164", "308183302418434370662823374382166021524" ] }, "deprecated": false, "id": "CVE-2022-49794-3dfd0a1d", "target": { "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1bf8c0aff8fb5c4edf3ba6728e6bedbd610d7f4b" }, { "signature_version": "v1", "digest": { "threshold": 0.9, "line_hashes": [ "336083302759360188710661519878843064236", "305382590067483641522508951300386943882", "10088184195472237062870575275905149310", "197433116086330964313158482876249795164", "308183302418434370662823374382166021524" ] }, "deprecated": false, "id": "CVE-2022-49794-3fe4aaf2", "target": { "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a0d98ae5a62a7bbad8fcf9fa22e0a1274197bbc4" }, { "signature_version": "v1", "digest": { "length": 375.0, "function_hash": "276280679132746610167023199914182482305" }, "deprecated": false, "id": "CVE-2022-49794-4233531b", "target": { "function": "at91_adc_allocate_trigger", "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2b29a7f2d52fb5281b30cf61c947d88bab18a29b" }, { "signature_version": "v1", "digest": { "threshold": 0.9, "line_hashes": [ "336083302759360188710661519878843064236", "305382590067483641522508951300386943882", "10088184195472237062870575275905149310", "197433116086330964313158482876249795164", "308183302418434370662823374382166021524" ] }, "deprecated": false, "id": "CVE-2022-49794-5b616fb7", "target": { "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@85d2a8b287a89853c0dcfc5a97b5e9d36376fe37" }, { "signature_version": "v1", "digest": { "length": 366.0, "function_hash": "180156512706484646316353038447438936061" }, "deprecated": false, "id": "CVE-2022-49794-72100445", "target": { "function": "at91_adc_allocate_trigger", "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c27a3b6ba23350708cf5ab9962337447b51eb76d" }, { "signature_version": "v1", "digest": { "length": 375.0, "function_hash": "276280679132746610167023199914182482305" }, "deprecated": false, "id": "CVE-2022-49794-84af02a0", "target": { "function": "at91_adc_allocate_trigger", "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a0d98ae5a62a7bbad8fcf9fa22e0a1274197bbc4" }, { "signature_version": "v1", "digest": { "length": 375.0, "function_hash": "276280679132746610167023199914182482305" }, "deprecated": false, "id": "CVE-2022-49794-86fb7802", "target": { "function": "at91_adc_allocate_trigger", "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c3ce73f60599a483dca7becd4112508833a40ef9" }, { "signature_version": "v1", "digest": { "threshold": 0.9, "line_hashes": [ "336083302759360188710661519878843064236", "305382590067483641522508951300386943882", "10088184195472237062870575275905149310", "197433116086330964313158482876249795164", "308183302418434370662823374382166021524" ] }, "deprecated": false, "id": "CVE-2022-49794-88734f34", "target": { "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@65f20301607d07ee279b0804d11a05a62a6c1a1c" }, { "signature_version": "v1", "digest": { "length": 375.0, "function_hash": "276280679132746610167023199914182482305" }, "deprecated": false, "id": "CVE-2022-49794-8beb553e", "target": { "function": "at91_adc_allocate_trigger", "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7b75515728b628a9a7540f201efdeb8ca7299385" }, { "signature_version": "v1", "digest": { "threshold": 0.9, "line_hashes": [ "336083302759360188710661519878843064236", "305382590067483641522508951300386943882", "10088184195472237062870575275905149310", "197433116086330964313158482876249795164", "308183302418434370662823374382166021524" ] }, "deprecated": false, "id": "CVE-2022-49794-aa90686f", "target": { "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2b29a7f2d52fb5281b30cf61c947d88bab18a29b" }, { "signature_version": "v1", "digest": { "length": 375.0, "function_hash": "276280679132746610167023199914182482305" }, "deprecated": false, "id": "CVE-2022-49794-bbdef23a", "target": { "function": "at91_adc_allocate_trigger", "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@85d2a8b287a89853c0dcfc5a97b5e9d36376fe37" }, { "signature_version": "v1", "digest": { "threshold": 0.9, "line_hashes": [ "336083302759360188710661519878843064236", "305382590067483641522508951300386943882", "10088184195472237062870575275905149310", "197433116086330964313158482876249795164", "308183302418434370662823374382166021524" ] }, "deprecated": false, "id": "CVE-2022-49794-d35b451b", "target": { "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Line", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7b75515728b628a9a7540f201efdeb8ca7299385" }, { "signature_version": "v1", "digest": { "length": 366.0, "function_hash": "180156512706484646316353038447438936061" }, "deprecated": false, "id": "CVE-2022-49794-f4b194be", "target": { "function": "at91_adc_allocate_trigger", "file": "drivers/iio/adc/at91_adc.c" }, "signature_type": "Function", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1bf8c0aff8fb5c4edf3ba6728e6bedbd610d7f4b" } ] }