CVE-2022-50304

mtd: core: fix possible resource leak in init_mtd()

References

Notes

 carnil> Introduced in 445caaa20c4d ("mtd: Allocate bdi objects dynamically").
 carnil> Vulnerable versions: 4.10.

Bugs

Status

Branch Status
upstream released (6.2-rc1) [1aadf01e5076b9ab6bf294b9622335c651314895]
6.18-upstream-stable N/A "Fixed before branching point"
6.17-upstream-stable N/A "Fixed before branching point"
6.16-upstream-stable N/A "Fixed before branching point"
6.12-upstream-stable N/A "Fixed before branching point"
6.6-upstream-stable N/A "Fixed before branching point"
6.1-upstream-stable released (6.1.2) [26c304a3f136009c5a2a04e2bf3ac6aa25aabcb4]
5.10-upstream-stable needed
sid released (6.1.4-1)
6.12-trixie-security N/A "Fixed before branching point"
6.1-bookworm-security N/A "Fixed before branching point"
5.10-bullseye-security needed