In the Linux kernel, the following vulnerability has been resolved:
bcachefs: Fix sbfielddowngrade validation
bch2sbdowngrade_validate() wasn't checking for a downgrade entry extending past the end of the superblock section
foreachdowngradeentry() is used in totext() and needs to work on malformed input; it also was missing a check for a field extending past the end of the section
[
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bf920ed92ef24dcd6970c88881cd4700b3acf05b",
"id": "CVE-2024-41086-160ba7ba",
"signature_version": "v1",
"target": {
"function": "bch2_sb_downgrade_validate",
"file": "fs/bcachefs/sb-downgrade.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "206594232440338923007967540274145177860",
"length": 478.0
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@692aa7a54b2b28d59f24b3bf8250837805484b99",
"id": "CVE-2024-41086-4ed99f4d",
"signature_version": "v1",
"target": {
"file": "fs/bcachefs/sb-downgrade.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"144551099581034698870758163326827738329",
"253796914449467364892211311626444696417",
"185150309336259057736213266949820009522",
"148387967292232073835861828309362331013",
"297115679867350588141988890459408101748",
"55737512875819521109710523037162318625",
"150288789733309214022796799535412188354",
"249773831588164096010214024727136061889"
]
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@bf920ed92ef24dcd6970c88881cd4700b3acf05b",
"id": "CVE-2024-41086-5a75511a",
"signature_version": "v1",
"target": {
"file": "fs/bcachefs/sb-downgrade.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"144551099581034698870758163326827738329",
"253796914449467364892211311626444696417",
"185150309336259057736213266949820009522",
"298291322446803031443703289433294506380",
"132795801593087979497145648531139686486",
"55737512875819521109710523037162318625",
"150288789733309214022796799535412188354",
"249773831588164096010214024727136061889"
]
}
},
{
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@692aa7a54b2b28d59f24b3bf8250837805484b99",
"id": "CVE-2024-41086-c0f103aa",
"signature_version": "v1",
"target": {
"function": "bch2_sb_downgrade_validate",
"file": "fs/bcachefs/sb-downgrade.c"
},
"signature_type": "Function",
"digest": {
"function_hash": "144117684023929568500986116636517580371",
"length": 492.0
}
}
]