In the Linux kernel, the following vulnerability has been resolved:
mxser: fix xmit_buf leak in activate when LSR == 0xff
When LSR is 0xff in ->activate() (rather unlike), we return an error. Provided ->shutdown() is not called when ->activate() fails, nothing actually frees the buffer in this case.
Fix this by properly freeing the buffer in a designated label. We jump there also from the "!info->type" if now too.
[
{
"id": "CVE-2022-49191-04448a2b",
"deprecated": false,
"digest": {
"length": 1638.0,
"function_hash": "136042878771461902881596906249333403680"
},
"signature_version": "v1",
"target": {
"function": "mxser_activate",
"file": "drivers/tty/mxser.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cd3a4907ee334b40d7aa880c7ab310b154fd5cd4"
},
{
"id": "CVE-2022-49191-06d2dfaf",
"deprecated": false,
"digest": {
"line_hashes": [
"3301902054376001135847320865048858588",
"233586424063708270099424876998367797116",
"82798323490916263294388242445634899767",
"76420550294292293075996739304328510177",
"81892853459942141154752191598720281974",
"306534109808969698989549105785437773966",
"161274117392628306512865779182410684973",
"333200131087472757110037764143453382672",
"233184069478406853654429851266271295684",
"215546778834931835583074280434604734639",
"192628610781697893060952987064181072197",
"95310380730457926153011073818401278750",
"237231050516692415643485278511798528313",
"179330679832622010655493602100677800518",
"66203204616622958843084795005472410260",
"63146171304362423603944143140126113429",
"124105199477127360816258741099783871909",
"27739008268066822018022249889436348607",
"239530423340233660136386500505139237379"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/tty/mxser.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cd3a4907ee334b40d7aa880c7ab310b154fd5cd4"
},
{
"id": "CVE-2022-49191-4706a10e",
"deprecated": false,
"digest": {
"line_hashes": [
"3301902054376001135847320865048858588",
"233586424063708270099424876998367797116",
"82798323490916263294388242445634899767",
"76420550294292293075996739304328510177",
"267737205284825093434146654746731856745",
"186917228244107077107753718595918602356",
"161274117392628306512865779182410684973",
"333200131087472757110037764143453382672",
"233184069478406853654429851266271295684",
"31613094615137684365575587931738369977",
"192628610781697893060952987064181072197",
"95310380730457926153011073818401278750",
"237231050516692415643485278511798528313",
"179330679832622010655493602100677800518",
"66203204616622958843084795005472410260",
"63146171304362423603944143140126113429",
"124105199477127360816258741099783871909",
"255817806985127784103864590518514056206",
"155260862767469546889775259977294809131"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/tty/mxser.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@376922045009f8ea2d20a8fa3475e95b47c41690"
},
{
"id": "CVE-2022-49191-4cbd5b46",
"deprecated": false,
"digest": {
"line_hashes": [
"3301902054376001135847320865048858588",
"233586424063708270099424876998367797116",
"82798323490916263294388242445634899767",
"76420550294292293075996739304328510177",
"267737205284825093434146654746731856745",
"186917228244107077107753718595918602356",
"161274117392628306512865779182410684973",
"333200131087472757110037764143453382672",
"233184069478406853654429851266271295684",
"31613094615137684365575587931738369977",
"192628610781697893060952987064181072197",
"95310380730457926153011073818401278750",
"237231050516692415643485278511798528313",
"179330679832622010655493602100677800518",
"66203204616622958843084795005472410260",
"117365626786323471672553155504037111337",
"162835918397634914564175081857923117974",
"255817806985127784103864590518514056206",
"155260862767469546889775259977294809131"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/tty/mxser.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@685b6d16bf89595310b5d61394c9b97cc9505c7c"
},
{
"id": "CVE-2022-49191-536aa732",
"deprecated": false,
"digest": {
"length": 1887.0,
"function_hash": "54124129513774545458612303597344700341"
},
"signature_version": "v1",
"target": {
"function": "mxser_activate",
"file": "drivers/tty/mxser.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@125b7c929fc9b1e5eaa344bceb6367dfa6fd3f9d"
},
{
"id": "CVE-2022-49191-549f13dd",
"deprecated": false,
"digest": {
"length": 1880.0,
"function_hash": "130664747101890044504638427569779562764"
},
"signature_version": "v1",
"target": {
"function": "mxser_activate",
"file": "drivers/tty/mxser.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2cd05c38a27bee7fb42aa4d43174d68ac55dac0f"
},
{
"id": "CVE-2022-49191-5cb4ea8a",
"deprecated": false,
"digest": {
"length": 1638.0,
"function_hash": "136042878771461902881596906249333403680"
},
"signature_version": "v1",
"target": {
"function": "mxser_activate",
"file": "drivers/tty/mxser.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6dffc2035fbaada60ca8db59e0962e34f760370a"
},
{
"id": "CVE-2022-49191-8194129a",
"deprecated": false,
"digest": {
"length": 1638.0,
"function_hash": "136042878771461902881596906249333403680"
},
"signature_version": "v1",
"target": {
"function": "mxser_activate",
"file": "drivers/tty/mxser.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c9041b2f90c0eace73106f22350e1d2c98f5edc"
},
{
"id": "CVE-2022-49191-824f987a",
"deprecated": false,
"digest": {
"line_hashes": [
"3301902054376001135847320865048858588",
"233586424063708270099424876998367797116",
"82798323490916263294388242445634899767",
"76420550294292293075996739304328510177",
"81892853459942141154752191598720281974",
"306534109808969698989549105785437773966",
"161274117392628306512865779182410684973",
"333200131087472757110037764143453382672",
"233184069478406853654429851266271295684",
"215546778834931835583074280434604734639",
"192628610781697893060952987064181072197",
"95310380730457926153011073818401278750",
"237231050516692415643485278511798528313",
"179330679832622010655493602100677800518",
"66203204616622958843084795005472410260",
"63146171304362423603944143140126113429",
"124105199477127360816258741099783871909",
"27739008268066822018022249889436348607",
"239530423340233660136386500505139237379"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/tty/mxser.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6dffc2035fbaada60ca8db59e0962e34f760370a"
},
{
"id": "CVE-2022-49191-842f2c7c",
"deprecated": false,
"digest": {
"length": 1860.0,
"function_hash": "156927137698112638549248548764654424062"
},
"signature_version": "v1",
"target": {
"function": "mxser_activate",
"file": "drivers/tty/mxser.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b125b08dbee3611f03f53b71471813ed4ccafcdd"
},
{
"id": "CVE-2022-49191-8b56d4f6",
"deprecated": false,
"digest": {
"line_hashes": [
"3301902054376001135847320865048858588",
"233586424063708270099424876998367797116",
"82798323490916263294388242445634899767",
"76420550294292293075996739304328510177",
"81892853459942141154752191598720281974",
"306534109808969698989549105785437773966",
"161274117392628306512865779182410684973",
"333200131087472757110037764143453382672",
"233184069478406853654429851266271295684",
"268284198173523669000114071342198294315",
"192628610781697893060952987064181072197",
"95310380730457926153011073818401278750",
"237231050516692415643485278511798528313",
"179330679832622010655493602100677800518",
"66203204616622958843084795005472410260",
"117365626786323471672553155504037111337",
"162835918397634914564175081857923117974",
"255817806985127784103864590518514056206",
"155260862767469546889775259977294809131"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/tty/mxser.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b125b08dbee3611f03f53b71471813ed4ccafcdd"
},
{
"id": "CVE-2022-49191-98fe582a",
"deprecated": false,
"digest": {
"line_hashes": [
"3301902054376001135847320865048858588",
"233586424063708270099424876998367797116",
"82798323490916263294388242445634899767",
"76420550294292293075996739304328510177",
"267737205284825093434146654746731856745",
"186917228244107077107753718595918602356",
"161274117392628306512865779182410684973",
"333200131087472757110037764143453382672",
"233184069478406853654429851266271295684",
"31613094615137684365575587931738369977",
"192628610781697893060952987064181072197",
"95310380730457926153011073818401278750",
"237231050516692415643485278511798528313",
"179330679832622010655493602100677800518",
"66203204616622958843084795005472410260",
"117365626786323471672553155504037111337",
"162835918397634914564175081857923117974",
"255817806985127784103864590518514056206",
"155260862767469546889775259977294809131"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/tty/mxser.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@996291d06851a26678a0fab488b6e1f0677c0576"
},
{
"id": "CVE-2022-49191-a1ad94b9",
"deprecated": false,
"digest": {
"line_hashes": [
"3301902054376001135847320865048858588",
"233586424063708270099424876998367797116",
"82798323490916263294388242445634899767",
"76420550294292293075996739304328510177",
"267737205284825093434146654746731856745",
"186917228244107077107753718595918602356",
"161274117392628306512865779182410684973",
"333200131087472757110037764143453382672",
"233184069478406853654429851266271295684",
"31613094615137684365575587931738369977",
"192628610781697893060952987064181072197",
"95310380730457926153011073818401278750",
"237231050516692415643485278511798528313",
"179330679832622010655493602100677800518",
"66203204616622958843084795005472410260",
"63146171304362423603944143140126113429",
"124105199477127360816258741099783871909",
"255817806985127784103864590518514056206",
"155260862767469546889775259977294809131"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/tty/mxser.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@125b7c929fc9b1e5eaa344bceb6367dfa6fd3f9d"
},
{
"id": "CVE-2022-49191-b1920068",
"deprecated": false,
"digest": {
"line_hashes": [
"3301902054376001135847320865048858588",
"233586424063708270099424876998367797116",
"82798323490916263294388242445634899767",
"76420550294292293075996739304328510177",
"267737205284825093434146654746731856745",
"186917228244107077107753718595918602356",
"161274117392628306512865779182410684973",
"333200131087472757110037764143453382672",
"233184069478406853654429851266271295684",
"31613094615137684365575587931738369977",
"192628610781697893060952987064181072197",
"95310380730457926153011073818401278750",
"237231050516692415643485278511798528313",
"179330679832622010655493602100677800518",
"66203204616622958843084795005472410260",
"117365626786323471672553155504037111337",
"162835918397634914564175081857923117974",
"255817806985127784103864590518514056206",
"155260862767469546889775259977294809131"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/tty/mxser.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2cd05c38a27bee7fb42aa4d43174d68ac55dac0f"
},
{
"id": "CVE-2022-49191-c5b6fcd0",
"deprecated": false,
"digest": {
"length": 1880.0,
"function_hash": "130664747101890044504638427569779562764"
},
"signature_version": "v1",
"target": {
"function": "mxser_activate",
"file": "drivers/tty/mxser.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@685b6d16bf89595310b5d61394c9b97cc9505c7c"
},
{
"id": "CVE-2022-49191-cb2a15f7",
"deprecated": false,
"digest": {
"length": 1887.0,
"function_hash": "54124129513774545458612303597344700341"
},
"signature_version": "v1",
"target": {
"function": "mxser_activate",
"file": "drivers/tty/mxser.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@376922045009f8ea2d20a8fa3475e95b47c41690"
},
{
"id": "CVE-2022-49191-eae69a4d",
"deprecated": false,
"digest": {
"line_hashes": [
"3301902054376001135847320865048858588",
"233586424063708270099424876998367797116",
"82798323490916263294388242445634899767",
"76420550294292293075996739304328510177",
"81892853459942141154752191598720281974",
"306534109808969698989549105785437773966",
"161274117392628306512865779182410684973",
"333200131087472757110037764143453382672",
"233184069478406853654429851266271295684",
"215546778834931835583074280434604734639",
"192628610781697893060952987064181072197",
"95310380730457926153011073818401278750",
"237231050516692415643485278511798528313",
"179330679832622010655493602100677800518",
"66203204616622958843084795005472410260",
"63146171304362423603944143140126113429",
"124105199477127360816258741099783871909",
"255817806985127784103864590518514056206",
"155260862767469546889775259977294809131"
],
"threshold": 0.9
},
"signature_version": "v1",
"target": {
"file": "drivers/tty/mxser.c"
},
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c9041b2f90c0eace73106f22350e1d2c98f5edc"
},
{
"id": "CVE-2022-49191-f524a602",
"deprecated": false,
"digest": {
"length": 1880.0,
"function_hash": "130664747101890044504638427569779562764"
},
"signature_version": "v1",
"target": {
"function": "mxser_activate",
"file": "drivers/tty/mxser.c"
},
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@996291d06851a26678a0fab488b6e1f0677c0576"
}
]