In the Linux kernel, the following vulnerability has been resolved:
ext4: fix error handling in ext4fcrecordmodifiedinode()
Current code does not fully takes care of krealloc() error case, which could lead to silent memory corruption or a kernel bug. This patch fixes that.
Also it cleans up some duplicated error handling logic from various functions in fast_commit.c file.
[
{
"digest": {
"length": 2271.0,
"function_hash": "73946508410016521392187978061148117463"
},
"target": {
"function": "ext4_fc_replay_add_range",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@62e46e0ffc02daa8fcfc02f7a932cc8a19601b19",
"id": "CVE-2022-48712-1234d2f9"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"117351329054887007702983779834075251759",
"280855707580691548601090599271680028747",
"33056014192014770073452905648716515137",
"321932727540377381305360502886210245642",
"158976235793464994992436658124796710306",
"180514150635511503411298806529419589978",
"58835609976841862778502455287867320965",
"96220320335231656839986128237910049830",
"149713099091327326835478948510608802729",
"127876139627980639055602304584448646749",
"123153938427896988171160368387584569742",
"48540188342766217329049727828433335988",
"149963861798979026916225382103059883206",
"170670884286283414370112179825913489518",
"266316615509265531032196457751304018565",
"264221597598861723747799083225782449706",
"50639094197607744781468427865663640577",
"142766722282983365902150196183877565502",
"156159144620984366868089888604465096677",
"219837347321505699683912191458985086261",
"228325473762240632800823113822441901104",
"259805875568129966006157709661406908498",
"115324912829070285764666399791411673954",
"11108649244711618441552200875048140149",
"65357254341879509090582399018045921554",
"107731459063895308563883673578120738582",
"338268485764278145043923370454928394201",
"117012454908525692296768331000594448699",
"269690293736242051721812837952073752841",
"114410517970710662985372133212789926698",
"122106071144193809375991715743138929806",
"246024892891869262006406949168648262640",
"336737579982656718517569777628765037132",
"76938908133533998419731834835528283203",
"98713605665319740024696764696336102296",
"257435208777956264333944986641625905196",
"30837731240456761967502987153326999623",
"100893920540717003140898667272209809409",
"280131837656172573897669806068566444094",
"12828387045775528140061478531999701051",
"43461826097076981333427106554814235766",
"59147425739464472810800440493488720739",
"257435208777956264333944986641625905196",
"152707472582372165162437512540334246074",
"17438549833525502246162494872992633491",
"62588929362495938749445894029725536974",
"274015059155871193692859196526344066376",
"171393592659640468690703930959510556175",
"50239861669121020498276166721196860451",
"257435208777956264333944986641625905196",
"53633492696817306662850044050740561526",
"317893295392035437542846036580884782658",
"86478492698203654766472604552762804162",
"283578529206463995318059288538088468621",
"92732911005688503877228846856741775319",
"45945847631651999031386824349038571245",
"310151379201850158426093241657853829542",
"276305394171766210870829424736191385187",
"212081468326501814478299149730452860803",
"265060468676819625554370738968620686208",
"331641577271577631073351860481923427570",
"53835316624538603463851650568782333562",
"331652800646426141748009915952011130250",
"259805875568129966006157709661406908498",
"115324912829070285764666399791411673954",
"138104811527605976561615760893519769415",
"216994010403051376085248277215898047121",
"54454686465470428053506758135265364522",
"79783637926648704369320553898156187105",
"149311147356667702820551353170118259153",
"40796158177874564840005053343289941298",
"257435208777956264333944986641625905196",
"115323035214547104972003815120127651057",
"206528345330721601201112046263298975592",
"204037750296878735074524605627694851566",
"206596866411129346401588989958079380368",
"49025278147765226329526408825041807732",
"217740370978201954649166769727628341460",
"269743240560905928358681253172836801535"
]
},
"target": {
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cdce59a1549190b66f8e3fe465c2b2f714b98a94",
"id": "CVE-2022-48712-1a1ef2d5"
},
{
"digest": {
"length": 2048.0,
"function_hash": "7103091431966751880680624835337144256"
},
"target": {
"function": "ext4_fc_replay_inode",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@14aa3f49c7fc6424763f4323bfbc3a807b0727dc",
"id": "CVE-2022-48712-27594b6c"
},
{
"digest": {
"length": 1997.0,
"function_hash": "233222132080185997927930572536599877821"
},
"target": {
"function": "ext4_fc_replay_inode",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1b6762ecdf3cf12113772427c904aa3c420a1802",
"id": "CVE-2022-48712-2d582b1c"
},
{
"digest": {
"length": 2271.0,
"function_hash": "73946508410016521392187978061148117463"
},
"target": {
"function": "ext4_fc_replay_add_range",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1b6762ecdf3cf12113772427c904aa3c420a1802",
"id": "CVE-2022-48712-3fa18726"
},
{
"digest": {
"length": 1351.0,
"function_hash": "16972015534318679210849504999121112608"
},
"target": {
"function": "ext4_fc_replay_del_range",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cdce59a1549190b66f8e3fe465c2b2f714b98a94",
"id": "CVE-2022-48712-3fe1d1f2"
},
{
"digest": {
"length": 675.0,
"function_hash": "155634677488423850909376867868948375566"
},
"target": {
"function": "ext4_fc_record_modified_inode",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cdce59a1549190b66f8e3fe465c2b2f714b98a94",
"id": "CVE-2022-48712-4d91bade"
},
{
"digest": {
"length": 2010.0,
"function_hash": "265986078916544336599798326651482220506"
},
"target": {
"function": "ext4_fc_replay_inode",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@62e46e0ffc02daa8fcfc02f7a932cc8a19601b19",
"id": "CVE-2022-48712-57ce534e"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"117351329054887007702983779834075251759",
"280855707580691548601090599271680028747",
"33056014192014770073452905648716515137",
"321932727540377381305360502886210245642",
"158976235793464994992436658124796710306",
"180514150635511503411298806529419589978",
"58835609976841862778502455287867320965",
"96220320335231656839986128237910049830",
"149713099091327326835478948510608802729",
"127876139627980639055602304584448646749",
"123153938427896988171160368387584569742",
"48540188342766217329049727828433335988",
"149963861798979026916225382103059883206",
"170670884286283414370112179825913489518",
"266316615509265531032196457751304018565",
"264221597598861723747799083225782449706",
"50639094197607744781468427865663640577",
"142766722282983365902150196183877565502",
"156159144620984366868089888604465096677",
"219837347321505699683912191458985086261",
"228325473762240632800823113822441901104",
"259805875568129966006157709661406908498",
"115324912829070285764666399791411673954",
"11108649244711618441552200875048140149",
"65357254341879509090582399018045921554",
"107731459063895308563883673578120738582",
"338268485764278145043923370454928394201",
"117012454908525692296768331000594448699",
"269690293736242051721812837952073752841",
"114410517970710662985372133212789926698",
"122106071144193809375991715743138929806",
"246024892891869262006406949168648262640",
"336737579982656718517569777628765037132",
"76938908133533998419731834835528283203",
"98713605665319740024696764696336102296",
"257435208777956264333944986641625905196",
"30837731240456761967502987153326999623",
"100893920540717003140898667272209809409",
"280131837656172573897669806068566444094",
"12828387045775528140061478531999701051",
"43461826097076981333427106554814235766",
"59147425739464472810800440493488720739",
"257435208777956264333944986641625905196",
"152707472582372165162437512540334246074",
"17438549833525502246162494872992633491",
"62588929362495938749445894029725536974",
"274015059155871193692859196526344066376",
"171393592659640468690703930959510556175",
"50239861669121020498276166721196860451",
"257435208777956264333944986641625905196",
"53633492696817306662850044050740561526",
"317893295392035437542846036580884782658",
"86478492698203654766472604552762804162",
"283578529206463995318059288538088468621",
"92732911005688503877228846856741775319",
"45945847631651999031386824349038571245",
"310151379201850158426093241657853829542",
"276305394171766210870829424736191385187",
"212081468326501814478299149730452860803",
"265060468676819625554370738968620686208",
"331641577271577631073351860481923427570",
"53835316624538603463851650568782333562",
"331652800646426141748009915952011130250",
"259805875568129966006157709661406908498",
"115324912829070285764666399791411673954",
"138104811527605976561615760893519769415",
"216994010403051376085248277215898047121",
"54454686465470428053506758135265364522",
"79783637926648704369320553898156187105",
"149311147356667702820551353170118259153",
"40796158177874564840005053343289941298",
"257435208777956264333944986641625905196",
"115323035214547104972003815120127651057",
"206528345330721601201112046263298975592",
"204037750296878735074524605627694851566",
"206596866411129346401588989958079380368",
"49025278147765226329526408825041807732",
"217740370978201954649166769727628341460",
"269743240560905928358681253172836801535"
]
},
"target": {
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1b6762ecdf3cf12113772427c904aa3c420a1802",
"id": "CVE-2022-48712-5ea4fef0"
},
{
"digest": {
"length": 1351.0,
"function_hash": "16972015534318679210849504999121112608"
},
"target": {
"function": "ext4_fc_replay_del_range",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@62e46e0ffc02daa8fcfc02f7a932cc8a19601b19",
"id": "CVE-2022-48712-609d7a80"
},
{
"digest": {
"length": 675.0,
"function_hash": "155634677488423850909376867868948375566"
},
"target": {
"function": "ext4_fc_record_modified_inode",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1b6762ecdf3cf12113772427c904aa3c420a1802",
"id": "CVE-2022-48712-6293bff1"
},
{
"digest": {
"length": 2271.0,
"function_hash": "73946508410016521392187978061148117463"
},
"target": {
"function": "ext4_fc_replay_add_range",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@14aa3f49c7fc6424763f4323bfbc3a807b0727dc",
"id": "CVE-2022-48712-82b9694c"
},
{
"digest": {
"length": 1351.0,
"function_hash": "16972015534318679210849504999121112608"
},
"target": {
"function": "ext4_fc_replay_del_range",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@14aa3f49c7fc6424763f4323bfbc3a807b0727dc",
"id": "CVE-2022-48712-8a7f37c3"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"117351329054887007702983779834075251759",
"280855707580691548601090599271680028747",
"33056014192014770073452905648716515137",
"321932727540377381305360502886210245642",
"158976235793464994992436658124796710306",
"180514150635511503411298806529419589978",
"58835609976841862778502455287867320965",
"96220320335231656839986128237910049830",
"149713099091327326835478948510608802729",
"127876139627980639055602304584448646749",
"123153938427896988171160368387584569742",
"48540188342766217329049727828433335988",
"149963861798979026916225382103059883206",
"170670884286283414370112179825913489518",
"266316615509265531032196457751304018565",
"264221597598861723747799083225782449706",
"50639094197607744781468427865663640577",
"142766722282983365902150196183877565502",
"156159144620984366868089888604465096677",
"219837347321505699683912191458985086261",
"228325473762240632800823113822441901104",
"259805875568129966006157709661406908498",
"115324912829070285764666399791411673954",
"11108649244711618441552200875048140149",
"65357254341879509090582399018045921554",
"107731459063895308563883673578120738582",
"338268485764278145043923370454928394201",
"117012454908525692296768331000594448699",
"269690293736242051721812837952073752841",
"114410517970710662985372133212789926698",
"122106071144193809375991715743138929806",
"246024892891869262006406949168648262640",
"336737579982656718517569777628765037132",
"76938908133533998419731834835528283203",
"98713605665319740024696764696336102296",
"257435208777956264333944986641625905196",
"30837731240456761967502987153326999623",
"100893920540717003140898667272209809409",
"280131837656172573897669806068566444094",
"12828387045775528140061478531999701051",
"43461826097076981333427106554814235766",
"59147425739464472810800440493488720739",
"257435208777956264333944986641625905196",
"152707472582372165162437512540334246074",
"17438549833525502246162494872992633491",
"62588929362495938749445894029725536974",
"274015059155871193692859196526344066376",
"171393592659640468690703930959510556175",
"50239861669121020498276166721196860451",
"257435208777956264333944986641625905196",
"53633492696817306662850044050740561526",
"317893295392035437542846036580884782658",
"86478492698203654766472604552762804162",
"283578529206463995318059288538088468621",
"92732911005688503877228846856741775319",
"45945847631651999031386824349038571245",
"310151379201850158426093241657853829542",
"276305394171766210870829424736191385187",
"212081468326501814478299149730452860803",
"265060468676819625554370738968620686208",
"331641577271577631073351860481923427570",
"53835316624538603463851650568782333562",
"331652800646426141748009915952011130250",
"259805875568129966006157709661406908498",
"115324912829070285764666399791411673954",
"138104811527605976561615760893519769415",
"216994010403051376085248277215898047121",
"54454686465470428053506758135265364522",
"79783637926648704369320553898156187105",
"149311147356667702820551353170118259153",
"40796158177874564840005053343289941298",
"257435208777956264333944986641625905196",
"115323035214547104972003815120127651057",
"206528345330721601201112046263298975592",
"204037750296878735074524605627694851566",
"206596866411129346401588989958079380368",
"49025278147765226329526408825041807732",
"217740370978201954649166769727628341460",
"144093665033783826456071156440023204417"
]
},
"target": {
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@62e46e0ffc02daa8fcfc02f7a932cc8a19601b19",
"id": "CVE-2022-48712-8ef68b62"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"117351329054887007702983779834075251759",
"280855707580691548601090599271680028747",
"33056014192014770073452905648716515137",
"321932727540377381305360502886210245642",
"158976235793464994992436658124796710306",
"180514150635511503411298806529419589978",
"58835609976841862778502455287867320965",
"96220320335231656839986128237910049830",
"149713099091327326835478948510608802729",
"127876139627980639055602304584448646749",
"123153938427896988171160368387584569742",
"48540188342766217329049727828433335988",
"149963861798979026916225382103059883206",
"170670884286283414370112179825913489518",
"266316615509265531032196457751304018565",
"264221597598861723747799083225782449706",
"50639094197607744781468427865663640577",
"142766722282983365902150196183877565502",
"156159144620984366868089888604465096677",
"219837347321505699683912191458985086261",
"228325473762240632800823113822441901104",
"259805875568129966006157709661406908498",
"115324912829070285764666399791411673954",
"11108649244711618441552200875048140149",
"65357254341879509090582399018045921554",
"107731459063895308563883673578120738582",
"338268485764278145043923370454928394201",
"117012454908525692296768331000594448699",
"269690293736242051721812837952073752841",
"114410517970710662985372133212789926698",
"122106071144193809375991715743138929806",
"246024892891869262006406949168648262640",
"336737579982656718517569777628765037132",
"76938908133533998419731834835528283203",
"98713605665319740024696764696336102296",
"257435208777956264333944986641625905196",
"30837731240456761967502987153326999623",
"100893920540717003140898667272209809409",
"280131837656172573897669806068566444094",
"12828387045775528140061478531999701051",
"43461826097076981333427106554814235766",
"59147425739464472810800440493488720739",
"257435208777956264333944986641625905196",
"152707472582372165162437512540334246074",
"17438549833525502246162494872992633491",
"62588929362495938749445894029725536974",
"274015059155871193692859196526344066376",
"171393592659640468690703930959510556175",
"50239861669121020498276166721196860451",
"257435208777956264333944986641625905196",
"53633492696817306662850044050740561526",
"317893295392035437542846036580884782658",
"86478492698203654766472604552762804162",
"283578529206463995318059288538088468621",
"92732911005688503877228846856741775319",
"45945847631651999031386824349038571245",
"310151379201850158426093241657853829542",
"276305394171766210870829424736191385187",
"212081468326501814478299149730452860803",
"265060468676819625554370738968620686208",
"331641577271577631073351860481923427570",
"53835316624538603463851650568782333562",
"331652800646426141748009915952011130250",
"259805875568129966006157709661406908498",
"115324912829070285764666399791411673954",
"138104811527605976561615760893519769415",
"216994010403051376085248277215898047121",
"54454686465470428053506758135265364522",
"79783637926648704369320553898156187105",
"149311147356667702820551353170118259153",
"40796158177874564840005053343289941298",
"257435208777956264333944986641625905196",
"115323035214547104972003815120127651057",
"206528345330721601201112046263298975592",
"204037750296878735074524605627694851566",
"206596866411129346401588989958079380368",
"49025278147765226329526408825041807732",
"217740370978201954649166769727628341460",
"269743240560905928358681253172836801535"
]
},
"target": {
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@14aa3f49c7fc6424763f4323bfbc3a807b0727dc",
"id": "CVE-2022-48712-8f815258"
},
{
"digest": {
"length": 675.0,
"function_hash": "155634677488423850909376867868948375566"
},
"target": {
"function": "ext4_fc_record_modified_inode",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@14aa3f49c7fc6424763f4323bfbc3a807b0727dc",
"id": "CVE-2022-48712-a7c8ee7c"
},
{
"digest": {
"length": 675.0,
"function_hash": "155634677488423850909376867868948375566"
},
"target": {
"function": "ext4_fc_record_modified_inode",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@62e46e0ffc02daa8fcfc02f7a932cc8a19601b19",
"id": "CVE-2022-48712-b2120dd8"
},
{
"digest": {
"length": 2271.0,
"function_hash": "73946508410016521392187978061148117463"
},
"target": {
"function": "ext4_fc_replay_add_range",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cdce59a1549190b66f8e3fe465c2b2f714b98a94",
"id": "CVE-2022-48712-b7505707"
},
{
"digest": {
"length": 1351.0,
"function_hash": "16972015534318679210849504999121112608"
},
"target": {
"function": "ext4_fc_replay_del_range",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1b6762ecdf3cf12113772427c904aa3c420a1802",
"id": "CVE-2022-48712-dd7f365e"
},
{
"digest": {
"length": 2048.0,
"function_hash": "7103091431966751880680624835337144256"
},
"target": {
"function": "ext4_fc_replay_inode",
"file": "fs/ext4/fast_commit.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cdce59a1549190b66f8e3fe465c2b2f714b98a94",
"id": "CVE-2022-48712-deaef5b5"
}
]