In the Linux kernel, the following vulnerability has been resolved:
cifs: Fix connections leak when tlink setup failed
If the tlink setup failed, lost to put the connections, then the module refcnt leak since the cifsd kthread not exit.
Also leak the fscache info, and for next mount with fsc, it will print the follow errors: CIFS: Cache volume key already in use (cifs,127.0.0.1:445,TEST)
Let's check the result of tlink setup, and do some cleanup.
[
{
"deprecated": false,
"id": "CVE-2022-49822-160f8b3a",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0a087842d10b5daa123ee5291e386cdd78413705",
"signature_version": "v1",
"target": {
"file": "fs/cifs/connect.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"26766460822560792212823610124149809909",
"41615266849453283251753391560664355641",
"191109778772954889255464925193632189519",
"64611863703959683054929952171886566294",
"193963893693958264836435969005484985376",
"243963838297631097731390273706552432613",
"330577560612749795509667881583821914373",
"3336577403610032329641217459922221314",
"324712620190495470709061541553120320594",
"206902318414438859148387243977670532088",
"241781973496024413411242682450306883010"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"id": "CVE-2022-49822-278baf71",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1dcdf5f5b2137185cbdd5385f29949ab3da4f00c",
"signature_version": "v1",
"target": {
"file": "fs/cifs/connect.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"26766460822560792212823610124149809909",
"41615266849453283251753391560664355641",
"191109778772954889255464925193632189519",
"64611863703959683054929952171886566294",
"193963893693958264836435969005484985376",
"243963838297631097731390273706552432613",
"330577560612749795509667881583821914373",
"3336577403610032329641217459922221314",
"324712620190495470709061541553120320594",
"206902318414438859148387243977670532088",
"241781973496024413411242682450306883010"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"id": "CVE-2022-49822-28563cd9",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1dcdf5f5b2137185cbdd5385f29949ab3da4f00c",
"signature_version": "v1",
"target": {
"function": "cifs_mount",
"file": "fs/cifs/connect.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "64710704962508620682337115819262565799",
"length": 412.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49822-2f2bf5ae",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0a087842d10b5daa123ee5291e386cdd78413705",
"signature_version": "v1",
"target": {
"function": "cifs_mount",
"file": "fs/cifs/connect.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "64710704962508620682337115819262565799",
"length": 412.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49822-3a91ca33",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9059e338fc000c0b87d8cf29e93c74fd703212e",
"signature_version": "v1",
"target": {
"function": "cifs_mount",
"file": "fs/cifs/connect.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "85333001953466858100691998268041519371",
"length": 982.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49822-401dc04f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1dcdf5f5b2137185cbdd5385f29949ab3da4f00c",
"signature_version": "v1",
"target": {
"function": "cifs_mount",
"file": "fs/cifs/connect.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "138328136532614249420927214461039235952",
"length": 969.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49822-b7642ef3",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9059e338fc000c0b87d8cf29e93c74fd703212e",
"signature_version": "v1",
"target": {
"file": "fs/cifs/connect.c"
},
"signature_type": "Line",
"digest": {
"line_hashes": [
"26766460822560792212823610124149809909",
"41615266849453283251753391560664355641",
"191109778772954889255464925193632189519",
"64611863703959683054929952171886566294",
"193963893693958264836435969005484985376",
"243963838297631097731390273706552432613",
"330577560612749795509667881583821914373",
"3336577403610032329641217459922221314",
"324712620190495470709061541553120320594",
"206902318414438859148387243977670532088",
"241781973496024413411242682450306883010"
],
"threshold": 0.9
}
},
{
"deprecated": false,
"id": "CVE-2022-49822-ba879f73",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a9059e338fc000c0b87d8cf29e93c74fd703212e",
"signature_version": "v1",
"target": {
"function": "cifs_mount",
"file": "fs/cifs/connect.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "64710704962508620682337115819262565799",
"length": 412.0
}
},
{
"deprecated": false,
"id": "CVE-2022-49822-db14a196",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0a087842d10b5daa123ee5291e386cdd78413705",
"signature_version": "v1",
"target": {
"function": "cifs_mount",
"file": "fs/cifs/connect.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "138328136532614249420927214461039235952",
"length": 969.0
}
}
]