In the Linux kernel, the following vulnerability has been resolved:
fs: sysfs: Fix reference leak in sysfsbreakactive_protection()
The sysfsbreakactiveprotection() routine has an obvious reference leak in its error path. If the call to kernfsfindandget() fails then kn will be NULL, so the companion sysfsunbreakactive_protection() routine won't get called (and would only cause an access violation by trying to dereference kn->parent if it was called). As a result, the reference to kobj acquired at the start of the function will never be released.
Fix the leak by adding an explicit kobject_put() call when kn is NULL.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/26xxx/CVE-2024-26993.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26993.json"
[
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@43f00210cb257bcb0387e8caeb4b46375d67f30c",
"digest": {
"line_hashes": [
"331007100970570768309588286595501610006",
"274595791481459910488644293612087066778",
"117168707918671680030983612756420389336",
"182755530754969604889927965120579819110"
],
"threshold": 0.9
},
"id": "CVE-2024-26993-0e204618",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c"
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@84bd4c2ae9c3d0a7d3a5c032ea7efff17af17e17",
"digest": {
"function_hash": "115856498849864893143840761487466456868",
"length": 187.0
},
"id": "CVE-2024-26993-168cfc18",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c",
"function": "sysfs_break_active_protection"
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@57baab0f376bec8f54b0fe6beb8f77a57c228063",
"digest": {
"function_hash": "115856498849864893143840761487466456868",
"length": 187.0
},
"id": "CVE-2024-26993-46d9f636",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c",
"function": "sysfs_break_active_protection"
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5d43e072285e81b0b63cee7189b3357c7768a43b",
"digest": {
"function_hash": "115856498849864893143840761487466456868",
"length": 187.0
},
"id": "CVE-2024-26993-682d2525",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c",
"function": "sysfs_break_active_protection"
}
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@84bd4c2ae9c3d0a7d3a5c032ea7efff17af17e17",
"digest": {
"line_hashes": [
"331007100970570768309588286595501610006",
"274595791481459910488644293612087066778",
"117168707918671680030983612756420389336",
"182755530754969604889927965120579819110"
],
"threshold": 0.9
},
"id": "CVE-2024-26993-6ac8e4a8",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c"
}
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a4c99b57d43bab45225ba92d574a8683f9edc8e4",
"digest": {
"line_hashes": [
"331007100970570768309588286595501610006",
"274595791481459910488644293612087066778",
"117168707918671680030983612756420389336",
"182755530754969604889927965120579819110"
],
"threshold": 0.9
},
"id": "CVE-2024-26993-793740d8",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c"
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f28bba37fe244889b81bb5c508d3f6e5c6e342c5",
"digest": {
"function_hash": "115856498849864893143840761487466456868",
"length": 187.0
},
"id": "CVE-2024-26993-7a4bec73",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c",
"function": "sysfs_break_active_protection"
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@43f00210cb257bcb0387e8caeb4b46375d67f30c",
"digest": {
"function_hash": "115856498849864893143840761487466456868",
"length": 187.0
},
"id": "CVE-2024-26993-85176a83",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c",
"function": "sysfs_break_active_protection"
}
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ac107356aabc362aaeb77463e814fc067a5d3957",
"digest": {
"line_hashes": [
"331007100970570768309588286595501610006",
"274595791481459910488644293612087066778",
"117168707918671680030983612756420389336",
"182755530754969604889927965120579819110"
],
"threshold": 0.9
},
"id": "CVE-2024-26993-ab7cd9fb",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c"
}
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5d43e072285e81b0b63cee7189b3357c7768a43b",
"digest": {
"line_hashes": [
"331007100970570768309588286595501610006",
"274595791481459910488644293612087066778",
"117168707918671680030983612756420389336",
"182755530754969604889927965120579819110"
],
"threshold": 0.9
},
"id": "CVE-2024-26993-add09047",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c"
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ac107356aabc362aaeb77463e814fc067a5d3957",
"digest": {
"function_hash": "115856498849864893143840761487466456868",
"length": 187.0
},
"id": "CVE-2024-26993-b80a2041",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c",
"function": "sysfs_break_active_protection"
}
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@57baab0f376bec8f54b0fe6beb8f77a57c228063",
"digest": {
"line_hashes": [
"331007100970570768309588286595501610006",
"274595791481459910488644293612087066778",
"117168707918671680030983612756420389336",
"182755530754969604889927965120579819110"
],
"threshold": 0.9
},
"id": "CVE-2024-26993-b97b8388",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c"
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a4c99b57d43bab45225ba92d574a8683f9edc8e4",
"digest": {
"function_hash": "115856498849864893143840761487466456868",
"length": 187.0
},
"id": "CVE-2024-26993-cd6cda09",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c",
"function": "sysfs_break_active_protection"
}
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f28bba37fe244889b81bb5c508d3f6e5c6e342c5",
"digest": {
"line_hashes": [
"331007100970570768309588286595501610006",
"274595791481459910488644293612087066778",
"117168707918671680030983612756420389336",
"182755530754969604889927965120579819110"
],
"threshold": 0.9
},
"id": "CVE-2024-26993-cfc645c9",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c"
}
},
{
"signature_type": "Line",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a90bca2228c0646fc29a72689d308e5fe03e6d78",
"digest": {
"line_hashes": [
"331007100970570768309588286595501610006",
"274595791481459910488644293612087066778",
"117168707918671680030983612756420389336",
"182755530754969604889927965120579819110"
],
"threshold": 0.9
},
"id": "CVE-2024-26993-ea250a28",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c"
}
},
{
"signature_type": "Function",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a90bca2228c0646fc29a72689d308e5fe03e6d78",
"digest": {
"function_hash": "115856498849864893143840761487466456868",
"length": 187.0
},
"id": "CVE-2024-26993-ffb278b3",
"deprecated": false,
"target": {
"file": "fs/sysfs/file.c",
"function": "sysfs_break_active_protection"
}
}
]