In the Linux kernel, the following vulnerability has been resolved:
dax: Fix daxmappingrelease() use after free
A CONFIGDEBUGKOBJECTRELEASE test of removing a device-dax region provider (like modprobe -r daxhmem) yields:
kobject: 'mapping0' (ffff93eb460e8800): kobjectrelease, parent 0000000000000000 (delayed 2000) [..] DEBUGLOCKSWARNON(1) WARNING: CPU: 23 PID: 282 at kernel/locking/lockdep.c:232 lockacquire+0x9fc/0x2260 [..] RIP: 0010:lockacquire+0x9fc/0x2260 [..] Call Trace: <TASK> [..] lockacquire+0xd4/0x2c0 ? idafree+0x62/0x130 rawspinlockirqsave+0x47/0x70 ? idafree+0x62/0x130 idafree+0x62/0x130 daxmappingrelease+0x1f/0x30 devicerelease+0x36/0x90 kobjectdelayed_cleanup+0x46/0x150
Due to attempting idafree() on an ida object that has already been freed. Devices typically only hold a reference on their parent while registered. If a child needs a parent object to complete its release it needs to hold a reference that it drops from its release callback. Arrange for a daxmapping to pin its parent devdax instance until daxmapping_release().
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53613.json"
}[
{
"digest": {
"length": 839.0,
"function_hash": "41637858738369326323507933309557114839"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f76db6781d76d8464ec2faa9752cc3fb2e4f6923",
"deprecated": false,
"id": "CVE-2023-53613-0d3a0d7f",
"signature_type": "Function",
"target": {
"function": "devm_register_dax_mapping",
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 839.0,
"function_hash": "41637858738369326323507933309557114839"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6d24b170a9db0456f577b1ab01226a2254c016a8",
"deprecated": false,
"id": "CVE-2023-53613-48690384",
"signature_type": "Function",
"target": {
"function": "devm_register_dax_mapping",
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"19613496753671336516641400843344323139",
"279266046368654891827109487446504725297",
"303946110520562572374155669294660305725",
"310802845352919504681842636302607975061",
"67185213350180041492897685232504646452",
"69756631716954361617937723583846972138",
"154779446463011003063999584123825300783",
"34282983793166383170582424530451639097",
"339162068912752248027997325625618723301",
"276179561496762130020193946587415793806"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6d24b170a9db0456f577b1ab01226a2254c016a8",
"deprecated": false,
"id": "CVE-2023-53613-6331ced7",
"signature_type": "Line",
"target": {
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 182.0,
"function_hash": "305511829677265132661311650463138773250"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@03859868ab82d57bfdd0cea1bf31f9319a5dded0",
"deprecated": false,
"id": "CVE-2023-53613-8e712f78",
"signature_type": "Function",
"target": {
"function": "dax_mapping_release",
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"19613496753671336516641400843344323139",
"279266046368654891827109487446504725297",
"303946110520562572374155669294660305725",
"310802845352919504681842636302607975061",
"67185213350180041492897685232504646452",
"69756631716954361617937723583846972138",
"154779446463011003063999584123825300783",
"34282983793166383170582424530451639097",
"339162068912752248027997325625618723301",
"276179561496762130020193946587415793806"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9c2f993b6ca903c030d58451b5bf9ea27d0d17fa",
"deprecated": false,
"id": "CVE-2023-53613-9c5b0a79",
"signature_type": "Line",
"target": {
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 839.0,
"function_hash": "41637858738369326323507933309557114839"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@94a85474f5e3e518bdbf8c9f51cb343d734a04f7",
"deprecated": false,
"id": "CVE-2023-53613-a8f2dab0",
"signature_type": "Function",
"target": {
"function": "devm_register_dax_mapping",
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 182.0,
"function_hash": "305511829677265132661311650463138773250"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f76db6781d76d8464ec2faa9752cc3fb2e4f6923",
"deprecated": false,
"id": "CVE-2023-53613-ab9554e2",
"signature_type": "Function",
"target": {
"function": "dax_mapping_release",
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 839.0,
"function_hash": "41637858738369326323507933309557114839"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9c2f993b6ca903c030d58451b5bf9ea27d0d17fa",
"deprecated": false,
"id": "CVE-2023-53613-af05aa1b",
"signature_type": "Function",
"target": {
"function": "devm_register_dax_mapping",
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 182.0,
"function_hash": "305511829677265132661311650463138773250"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7310b84821f043dcf77d5e6aa0ad55dc1e10a11d",
"deprecated": false,
"id": "CVE-2023-53613-b3115b07",
"signature_type": "Function",
"target": {
"function": "dax_mapping_release",
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 182.0,
"function_hash": "305511829677265132661311650463138773250"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6d24b170a9db0456f577b1ab01226a2254c016a8",
"deprecated": false,
"id": "CVE-2023-53613-b6d22fa8",
"signature_type": "Function",
"target": {
"function": "dax_mapping_release",
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"19613496753671336516641400843344323139",
"279266046368654891827109487446504725297",
"303946110520562572374155669294660305725",
"310802845352919504681842636302607975061",
"67185213350180041492897685232504646452",
"69756631716954361617937723583846972138",
"154779446463011003063999584123825300783",
"34282983793166383170582424530451639097",
"339162068912752248027997325625618723301",
"276179561496762130020193946587415793806"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@94a85474f5e3e518bdbf8c9f51cb343d734a04f7",
"deprecated": false,
"id": "CVE-2023-53613-bc041844",
"signature_type": "Line",
"target": {
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"19613496753671336516641400843344323139",
"279266046368654891827109487446504725297",
"303946110520562572374155669294660305725",
"310802845352919504681842636302607975061",
"67185213350180041492897685232504646452",
"69756631716954361617937723583846972138",
"154779446463011003063999584123825300783",
"34282983793166383170582424530451639097",
"339162068912752248027997325625618723301",
"276179561496762130020193946587415793806"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f76db6781d76d8464ec2faa9752cc3fb2e4f6923",
"deprecated": false,
"id": "CVE-2023-53613-c1f2994f",
"signature_type": "Line",
"target": {
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 839.0,
"function_hash": "41637858738369326323507933309557114839"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@03859868ab82d57bfdd0cea1bf31f9319a5dded0",
"deprecated": false,
"id": "CVE-2023-53613-e0331f4e",
"signature_type": "Function",
"target": {
"function": "devm_register_dax_mapping",
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 182.0,
"function_hash": "305511829677265132661311650463138773250"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@94a85474f5e3e518bdbf8c9f51cb343d734a04f7",
"deprecated": false,
"id": "CVE-2023-53613-eb9225cc",
"signature_type": "Function",
"target": {
"function": "dax_mapping_release",
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"19613496753671336516641400843344323139",
"279266046368654891827109487446504725297",
"303946110520562572374155669294660305725",
"310802845352919504681842636302607975061",
"67185213350180041492897685232504646452",
"69756631716954361617937723583846972138",
"154779446463011003063999584123825300783",
"34282983793166383170582424530451639097",
"339162068912752248027997325625618723301",
"276179561496762130020193946587415793806"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7310b84821f043dcf77d5e6aa0ad55dc1e10a11d",
"deprecated": false,
"id": "CVE-2023-53613-f40c1d17",
"signature_type": "Line",
"target": {
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"19613496753671336516641400843344323139",
"279266046368654891827109487446504725297",
"303946110520562572374155669294660305725",
"310802845352919504681842636302607975061",
"67185213350180041492897685232504646452",
"69756631716954361617937723583846972138",
"154779446463011003063999584123825300783",
"34282983793166383170582424530451639097",
"339162068912752248027997325625618723301",
"276179561496762130020193946587415793806"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@03859868ab82d57bfdd0cea1bf31f9319a5dded0",
"deprecated": false,
"id": "CVE-2023-53613-f6646a42",
"signature_type": "Line",
"target": {
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 839.0,
"function_hash": "41637858738369326323507933309557114839"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7310b84821f043dcf77d5e6aa0ad55dc1e10a11d",
"deprecated": false,
"id": "CVE-2023-53613-f96188ca",
"signature_type": "Function",
"target": {
"function": "devm_register_dax_mapping",
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 182.0,
"function_hash": "305511829677265132661311650463138773250"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9c2f993b6ca903c030d58451b5bf9ea27d0d17fa",
"deprecated": false,
"id": "CVE-2023-53613-fd2a6934",
"signature_type": "Function",
"target": {
"function": "dax_mapping_release",
"file": "drivers/dax/bus.c"
},
"signature_version": "v1"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53613.json"