In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix to avoid potential panic during recovery
During recovery, if FAULTBLOCK is on, it is possible that f2fsreservenewblock() will return -ENOSPC during recovery, then it may trigger panic.
Also, if fault injection rate is 1 and only FAULT_BLOCK fault type is on, it may encounter deadloop in loop of block reservation.
Let's change as below to fix these issues: - remove bug_on() to avoid panic. - limit the loop count of block reservation to avoid potential deadloop.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27032.json"
}[
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f26091a981318b5b7451d61f99bc073a6af8db67",
"digest": {
"threshold": 0.9,
"line_hashes": [
"42954652272527231481288712004104145459",
"335652821769112380322028930745255289632",
"312627908654548532278478540150614854921"
]
},
"target": {
"file": "fs/f2fs/f2fs.h"
},
"id": "CVE-2024-27032-01594c5c",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d034810d02a5af8eb74debe29877dcaf5f00fdd1",
"digest": {
"function_hash": "181413973533083288004692316894163020227",
"length": 3234.0
},
"target": {
"file": "fs/f2fs/recovery.c",
"function": "do_recover_data"
},
"id": "CVE-2024-27032-0305c7ce",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fe4de493572a4263554903bf9c3afc5c196e15f0",
"digest": {
"threshold": 0.9,
"line_hashes": [
"42954652272527231481288712004104145459",
"335652821769112380322028930745255289632",
"312627908654548532278478540150614854921"
]
},
"target": {
"file": "fs/f2fs/f2fs.h"
},
"id": "CVE-2024-27032-0602dc90",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d034810d02a5af8eb74debe29877dcaf5f00fdd1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"42954652272527231481288712004104145459",
"335652821769112380322028930745255289632",
"312627908654548532278478540150614854921"
]
},
"target": {
"file": "fs/f2fs/f2fs.h"
},
"id": "CVE-2024-27032-1ffaae42",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@21ec68234826b1b54ab980a8df6e33c74cfbee58",
"digest": {
"function_hash": "181413973533083288004692316894163020227",
"length": 3234.0
},
"target": {
"file": "fs/f2fs/recovery.c",
"function": "do_recover_data"
},
"id": "CVE-2024-27032-23ae2c89",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8844b2f8a3f0c428b74672f9726f9950b1a7764c",
"digest": {
"function_hash": "181413973533083288004692316894163020227",
"length": 3234.0
},
"target": {
"file": "fs/f2fs/recovery.c",
"function": "do_recover_data"
},
"id": "CVE-2024-27032-370a2994",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f26091a981318b5b7451d61f99bc073a6af8db67",
"digest": {
"function_hash": "181413973533083288004692316894163020227",
"length": 3234.0
},
"target": {
"file": "fs/f2fs/recovery.c",
"function": "do_recover_data"
},
"id": "CVE-2024-27032-92bfba78",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fe4de493572a4263554903bf9c3afc5c196e15f0",
"digest": {
"function_hash": "181413973533083288004692316894163020227",
"length": 3234.0
},
"target": {
"file": "fs/f2fs/recovery.c",
"function": "do_recover_data"
},
"id": "CVE-2024-27032-9529c997",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f26091a981318b5b7451d61f99bc073a6af8db67",
"digest": {
"threshold": 0.9,
"line_hashes": [
"68713873560556541709376053285763492714",
"277085470616399620040648150054949574573",
"162536920495607502457381286675778875738",
"33472706592808634527907886237126552515",
"292542387184396922012456595150629332288",
"234653272272340463045339451121955130450",
"158588794171379037561274733219804741290",
"230482652234076799796560811059811271664",
"131629639140898766629087615455545581187",
"98919180842323926737481540110305585503",
"131898892802061383752685912199057030821",
"256032617909691142976756528366595431930",
"242565058811554494406266270836599654845",
"11529981784848152294997846182291643185",
"180885333707460772558777993421518867192",
"131482479417876584326385861726247834840",
"331959463800049632434511947088670310613",
"262896174518123222529986758918399227920",
"158588794171379037561274733219804741290",
"230482652234076799796560811059811271664",
"131629639140898766629087615455545581187",
"98919180842323926737481540110305585503",
"131898892802061383752685912199057030821",
"256032617909691142976756528366595431930",
"242565058811554494406266270836599654845",
"76764255467644674497721716725318432674"
]
},
"target": {
"file": "fs/f2fs/recovery.c"
},
"id": "CVE-2024-27032-9e4e4b74",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@21ec68234826b1b54ab980a8df6e33c74cfbee58",
"digest": {
"threshold": 0.9,
"line_hashes": [
"68713873560556541709376053285763492714",
"277085470616399620040648150054949574573",
"162536920495607502457381286675778875738",
"33472706592808634527907886237126552515",
"292542387184396922012456595150629332288",
"234653272272340463045339451121955130450",
"158588794171379037561274733219804741290",
"230482652234076799796560811059811271664",
"131629639140898766629087615455545581187",
"98919180842323926737481540110305585503",
"131898892802061383752685912199057030821",
"256032617909691142976756528366595431930",
"242565058811554494406266270836599654845",
"11529981784848152294997846182291643185",
"180885333707460772558777993421518867192",
"131482479417876584326385861726247834840",
"331959463800049632434511947088670310613",
"262896174518123222529986758918399227920",
"158588794171379037561274733219804741290",
"230482652234076799796560811059811271664",
"131629639140898766629087615455545581187",
"98919180842323926737481540110305585503",
"131898892802061383752685912199057030821",
"256032617909691142976756528366595431930",
"242565058811554494406266270836599654845",
"76764255467644674497721716725318432674"
]
},
"target": {
"file": "fs/f2fs/recovery.c"
},
"id": "CVE-2024-27032-a209fbbc",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8844b2f8a3f0c428b74672f9726f9950b1a7764c",
"digest": {
"threshold": 0.9,
"line_hashes": [
"68713873560556541709376053285763492714",
"277085470616399620040648150054949574573",
"162536920495607502457381286675778875738",
"33472706592808634527907886237126552515",
"292542387184396922012456595150629332288",
"234653272272340463045339451121955130450",
"158588794171379037561274733219804741290",
"230482652234076799796560811059811271664",
"131629639140898766629087615455545581187",
"98919180842323926737481540110305585503",
"131898892802061383752685912199057030821",
"256032617909691142976756528366595431930",
"242565058811554494406266270836599654845",
"11529981784848152294997846182291643185",
"180885333707460772558777993421518867192",
"131482479417876584326385861726247834840",
"331959463800049632434511947088670310613",
"262896174518123222529986758918399227920",
"158588794171379037561274733219804741290",
"230482652234076799796560811059811271664",
"131629639140898766629087615455545581187",
"98919180842323926737481540110305585503",
"131898892802061383752685912199057030821",
"256032617909691142976756528366595431930",
"242565058811554494406266270836599654845",
"76764255467644674497721716725318432674"
]
},
"target": {
"file": "fs/f2fs/recovery.c"
},
"id": "CVE-2024-27032-afd1353f",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fe4de493572a4263554903bf9c3afc5c196e15f0",
"digest": {
"threshold": 0.9,
"line_hashes": [
"68713873560556541709376053285763492714",
"277085470616399620040648150054949574573",
"162536920495607502457381286675778875738",
"33472706592808634527907886237126552515",
"292542387184396922012456595150629332288",
"234653272272340463045339451121955130450",
"158588794171379037561274733219804741290",
"230482652234076799796560811059811271664",
"131629639140898766629087615455545581187",
"98919180842323926737481540110305585503",
"131898892802061383752685912199057030821",
"256032617909691142976756528366595431930",
"242565058811554494406266270836599654845",
"11529981784848152294997846182291643185",
"180885333707460772558777993421518867192",
"131482479417876584326385861726247834840",
"331959463800049632434511947088670310613",
"262896174518123222529986758918399227920",
"158588794171379037561274733219804741290",
"230482652234076799796560811059811271664",
"131629639140898766629087615455545581187",
"98919180842323926737481540110305585503",
"131898892802061383752685912199057030821",
"256032617909691142976756528366595431930",
"242565058811554494406266270836599654845",
"76764255467644674497721716725318432674"
]
},
"target": {
"file": "fs/f2fs/recovery.c"
},
"id": "CVE-2024-27032-d61efaea",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@21ec68234826b1b54ab980a8df6e33c74cfbee58",
"digest": {
"threshold": 0.9,
"line_hashes": [
"42954652272527231481288712004104145459",
"335652821769112380322028930745255289632",
"312627908654548532278478540150614854921"
]
},
"target": {
"file": "fs/f2fs/f2fs.h"
},
"id": "CVE-2024-27032-db5f8608",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8844b2f8a3f0c428b74672f9726f9950b1a7764c",
"digest": {
"threshold": 0.9,
"line_hashes": [
"42954652272527231481288712004104145459",
"335652821769112380322028930745255289632",
"312627908654548532278478540150614854921"
]
},
"target": {
"file": "fs/f2fs/f2fs.h"
},
"id": "CVE-2024-27032-dc44e31a",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d034810d02a5af8eb74debe29877dcaf5f00fdd1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"68713873560556541709376053285763492714",
"277085470616399620040648150054949574573",
"162536920495607502457381286675778875738",
"33472706592808634527907886237126552515",
"292542387184396922012456595150629332288",
"234653272272340463045339451121955130450",
"158588794171379037561274733219804741290",
"230482652234076799796560811059811271664",
"131629639140898766629087615455545581187",
"98919180842323926737481540110305585503",
"131898892802061383752685912199057030821",
"256032617909691142976756528366595431930",
"242565058811554494406266270836599654845",
"11529981784848152294997846182291643185",
"180885333707460772558777993421518867192",
"131482479417876584326385861726247834840",
"331959463800049632434511947088670310613",
"262896174518123222529986758918399227920",
"158588794171379037561274733219804741290",
"230482652234076799796560811059811271664",
"131629639140898766629087615455545581187",
"98919180842323926737481540110305585503",
"131898892802061383752685912199057030821",
"256032617909691142976756528366595431930",
"242565058811554494406266270836599654845",
"76764255467644674497721716725318432674"
]
},
"target": {
"file": "fs/f2fs/recovery.c"
},
"id": "CVE-2024-27032-f5c138e0",
"deprecated": false,
"signature_version": "v1"
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-27032.json"