{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-27023","id":"CVE-2024-27023","title":"md: Fix missing release of 'active_io' for flush","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd: Fix missing release of 'active_io' for flush\n\nsubmit_flushes\n atomic_set(&mddev->flush_pending, 1);\n rdev_for_each_rcu(rdev, mddev)\n  atomic_inc(&mddev->flush_pending);\n  bi->bi_end_io = md_end_flush\n  submit_bio(bi);\n                        /* flush io is done first */\n                        md_end_flush\n                   ","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd: Fix missing release of 'active_io' for flush\n\nsubmit_flushes\n atomic_set(&mddev->flush_pending, 1);\n rdev_for_each_rcu(rdev, mddev)\n  atomic_inc(&mddev->flush_pending);\n  bi->bi_end_io = md_end_flush\n  submit_bio(bi);\n                        /* flush io is done first */\n                        md_end_flush\n                         if (atomic_dec_and_test(&mddev->flush_pending))\n                          percpu_ref_put(&mddev->active_io)\n                          -> active_io is not released\n\n if (atomic_dec_and_test(&mddev->flush_pending))\n  -> missing release of active_io\n\nFor consequence, mddev_suspend() will wait for 'active_io' to be zero\nforever.\n\nFix this problem by releasing 'active_io' in submit_flushes() if\n'flush_pending' is decreased to zero.","published":"2024-05-01T12:49:21.063Z","updated":"2026-10-28T02:30:34.556281981Z","reserved":"2024-02-19T14:20:24.210Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f9f2d957a8ea93c73182aebf7de30935a58c027d","lessThan":"6b2ff10390b19a2364af622b6666b690443f9f3f","status":"affected","versionType":"git"},{"version":"530cec617f5a8ba6f26bcbf0d64d75c951d17730","lessThan":"02dad157ba11064d073f5499dc33552b227d5d3a","status":"affected","versionType":"git"},{"version":"c4c2345214b66e2505a26fd2ea58839dd7a1d48d","lessThan":"11f81438927f84edfaaeb5d5f10856c3a1c1fc82","status":"affected","versionType":"git"},{"version":"fa2bbff7b0b4e211fec5e5686ef96350690597b5","lessThan":"855678ed8534518e2b428bcbcec695de9ba248e8","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6.1.75","lessThan":"6.1.80","status":"affected","versionType":"semver"},{"version":"6.6.14","lessThan":"6.6.19","status":"affected","versionType":"semver"},{"version":"6.7.2","lessThan":"6.7.7","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/6b2ff10390b19a2364af622b6666b690443f9f3f","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/02dad157ba11064d073f5499dc33552b227d5d3a","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/11f81438927f84edfaaeb5d5f10856c3a1c1fc82","tags":["x_transferred","Patch","web"]},{"url":"https://git.kernel.org/stable/c/855678ed8534518e2b428bcbcec695de9ba248e8","tags":["x_transferred","Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27023.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27023","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00272,"epssPercentile":0.19829,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-27023","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27023","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-27023","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-27023","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}