In the Linux kernel, the following vulnerability has been resolved:
scsi: ufs: core: bsg: Fix crash when arpmb command fails
If the device doesn't support arpmb we'll crash due to copying user data in bsgtransportsgiofn().
In the case where ufsbsgexecadvancedrpmbreq() returns an error, do not set the job's replylen.
Memory crash backtrace: 3,1290,531166405,-;ufshcd 0000:00:12.5: ARPMB OP failed: error code -22
4,1308,531166555,-;Call Trace:
4,1309,531166559,-; <TASK>
4,1310,531166565,-; ? show_regs+0x6d/0x80
4,1311,531166575,-; ? die+0x37/0xa0
4,1312,531166583,-; ? do_trap+0xd4/0xf0
4,1313,531166593,-; ? doerrortrap+0x71/0xb0
4,1314,531166601,-; ? usercopy_abort+0x6c/0x80
4,1315,531166610,-; ? excinvalidop+0x52/0x80
4,1316,531166622,-; ? usercopy_abort+0x6c/0x80
4,1317,531166630,-; ? asmexcinvalid_op+0x1b/0x20
4,1318,531166643,-; ? usercopy_abort+0x6c/0x80
4,1319,531166652,-; _checkheap_object+0xe3/0x120
4,1320,531166661,-; checkheapobject+0x185/0x1d0
4,1321,531166670,-; _checkobject_size.part.0+0x72/0x150
4,1322,531166679,-; _checkobject_size+0x23/0x30
4,1323,531166688,-; bsgtransportsgiofn+0x314/0x3b0
[
{
"id": "CVE-2025-21873-0b40710a",
"signature_type": "Function",
"target": {
"function": "ufs_bsg_request",
"file": "drivers/ufs/core/ufs_bsg.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@32fb5ec825f6f76bc28902181c65429a904a07fe",
"digest": {
"length": 1760.0,
"function_hash": "38366987355688412278920831015447995377"
},
"signature_version": "v1",
"deprecated": false
},
{
"id": "CVE-2025-21873-14d5b50d",
"signature_type": "Function",
"target": {
"function": "ufs_bsg_request",
"file": "drivers/ufs/core/ufs_bsg.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@59455f968c1004ed897ba873237657745d81ce0f",
"digest": {
"length": 1760.0,
"function_hash": "38366987355688412278920831015447995377"
},
"signature_version": "v1",
"deprecated": false
},
{
"id": "CVE-2025-21873-3c5f31a7",
"signature_type": "Line",
"target": {
"file": "drivers/ufs/core/ufs_bsg.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@59455f968c1004ed897ba873237657745d81ce0f",
"digest": {
"line_hashes": [
"233858983789835597607224107745528438067",
"249462944583012699700797416974204247019",
"63911826973786895151637523858635402175",
"312143369146414422864725006729566942668",
"282333883556640130358046155529934758055",
"66792530185455219863249762392024988882"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false
},
{
"id": "CVE-2025-21873-41266ed7",
"signature_type": "Function",
"target": {
"function": "ufs_bsg_request",
"file": "drivers/ufs/core/ufs_bsg.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f27a95845b01e86d67c8b014b4f41bd3327daa63",
"digest": {
"length": 1760.0,
"function_hash": "38366987355688412278920831015447995377"
},
"signature_version": "v1",
"deprecated": false
},
{
"id": "CVE-2025-21873-d475dd20",
"signature_type": "Line",
"target": {
"file": "drivers/ufs/core/ufs_bsg.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@32fb5ec825f6f76bc28902181c65429a904a07fe",
"digest": {
"line_hashes": [
"233858983789835597607224107745528438067",
"249462944583012699700797416974204247019",
"63911826973786895151637523858635402175",
"312143369146414422864725006729566942668",
"282333883556640130358046155529934758055",
"66792530185455219863249762392024988882"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false
},
{
"id": "CVE-2025-21873-d4abc102",
"signature_type": "Line",
"target": {
"file": "drivers/ufs/core/ufs_bsg.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e3c96ff5c5f3206984ed077b2aa8c9b7c4e0327",
"digest": {
"line_hashes": [
"233858983789835597607224107745528438067",
"249462944583012699700797416974204247019",
"63911826973786895151637523858635402175",
"312143369146414422864725006729566942668",
"282333883556640130358046155529934758055",
"66792530185455219863249762392024988882"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false
},
{
"id": "CVE-2025-21873-e1b505d9",
"signature_type": "Function",
"target": {
"function": "ufs_bsg_request",
"file": "drivers/ufs/core/ufs_bsg.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7e3c96ff5c5f3206984ed077b2aa8c9b7c4e0327",
"digest": {
"length": 1760.0,
"function_hash": "38366987355688412278920831015447995377"
},
"signature_version": "v1",
"deprecated": false
},
{
"id": "CVE-2025-21873-fd5b935c",
"signature_type": "Line",
"target": {
"file": "drivers/ufs/core/ufs_bsg.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f27a95845b01e86d67c8b014b4f41bd3327daa63",
"digest": {
"line_hashes": [
"233858983789835597607224107745528438067",
"249462944583012699700797416974204247019",
"63911826973786895151637523858635402175",
"312143369146414422864725006729566942668",
"282333883556640130358046155529934758055",
"66792530185455219863249762392024988882"
],
"threshold": 0.9
},
"signature_version": "v1",
"deprecated": false
}
]