In the Linux kernel, the following vulnerability has been resolved:
f2fs: initialize locks earlier in f2fsfillsuper()
syzbot is reporting lockdep warning at f2fshandleerror() [1], for spinlock(&sbi->errorlock) is called before spinlockinit() is called. For safe locking in error handling, move initialization of locks (and obvious structures) in f2fsfillsuper() to immediately after memory allocation.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/ee626f5d79d5817bb21d6f048dc0da4c4e383443/cves/2022/49xxx/CVE-2022-49742.json"
}[
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ddeff03bb33810fcf2f0c18e03d099cf0aacda62",
"id": "CVE-2022-49742-1294e693",
"target": {
"function": "f2fs_fill_super",
"file": "fs/f2fs/super.c"
},
"digest": {
"function_hash": "30305945013159451661640773397102344445",
"length": 10378.0
},
"signature_version": "v1"
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ddeff03bb33810fcf2f0c18e03d099cf0aacda62",
"id": "CVE-2022-49742-711d0e36",
"target": {
"file": "fs/f2fs/super.c"
},
"digest": {
"line_hashes": [
"10171852610668027799546801833969364977",
"254410089850860114095774097253863242053",
"136074822061653634826305727571823413956",
"226090062443169131790905971471554413711",
"274754914807309326403085938551805168830",
"3621560376240550218099714639698103632",
"84176875698587404533151402104601874730",
"112436663608856282736892392960915275498",
"179475766990592588120308919229470048123",
"305417048897494200056828180750640705636",
"132551556539892279124068785917706702775",
"139005344186556990059749003806622242484",
"217357186974036102668455847534453642419",
"265695760981757220260403871361845626037",
"202640142675749399413803390689138068583",
"457137188693139166895476488535170003",
"2500940361542221503478724887246821574",
"53925139761479398829246432789709647306",
"232057171895696080702076483050607644019",
"217270075714655318729272001959736218431",
"147304402843120280652718355904124613546",
"154684883511052879295404925661508360282",
"240917919409549292698081536523567979361",
"269053409187025548729635759754437782213",
"66532040340984182257967696090321261658",
"280773310466937101531656691217018961459",
"196903380430334673194874529606652818405",
"261513456539079978375190812134162137496",
"164052570766462860510746129660073012905",
"208977340154988416150729919816335343002",
"20351384311642136694470249531696098788",
"166662252720731167360755288973164048875"
],
"threshold": 0.9
},
"signature_version": "v1"
},
{
"signature_type": "Line",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92b4cf5b48955a4bdd15fe4e2067db8ebd87f04c",
"id": "CVE-2022-49742-92ac572e",
"target": {
"file": "fs/f2fs/super.c"
},
"digest": {
"line_hashes": [
"10171852610668027799546801833969364977",
"254410089850860114095774097253863242053",
"136074822061653634826305727571823413956",
"226090062443169131790905971471554413711",
"274754914807309326403085938551805168830",
"3621560376240550218099714639698103632",
"84176875698587404533151402104601874730",
"112436663608856282736892392960915275498",
"179475766990592588120308919229470048123",
"305417048897494200056828180750640705636",
"132551556539892279124068785917706702775",
"139005344186556990059749003806622242484",
"217357186974036102668455847534453642419",
"265695760981757220260403871361845626037",
"202640142675749399413803390689138068583",
"457137188693139166895476488535170003",
"2500940361542221503478724887246821574",
"53925139761479398829246432789709647306",
"232057171895696080702076483050607644019",
"217270075714655318729272001959736218431",
"147304402843120280652718355904124613546",
"154684883511052879295404925661508360282",
"240917919409549292698081536523567979361",
"269053409187025548729635759754437782213",
"66532040340984182257967696090321261658",
"280773310466937101531656691217018961459",
"196903380430334673194874529606652818405",
"261513456539079978375190812134162137496",
"164052570766462860510746129660073012905",
"208977340154988416150729919816335343002",
"20351384311642136694470249531696098788",
"166662252720731167360755288973164048875"
],
"threshold": 0.9
},
"signature_version": "v1"
},
{
"signature_type": "Function",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@92b4cf5b48955a4bdd15fe4e2067db8ebd87f04c",
"id": "CVE-2022-49742-f14b9d9d",
"target": {
"function": "f2fs_fill_super",
"file": "fs/f2fs/super.c"
},
"digest": {
"function_hash": "30305945013159451661640773397102344445",
"length": 10378.0
},
"signature_version": "v1"
}
]