of/overlay: don't leak fragment references when changeset init fails
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 1d62f0f2bc7edb12ed09f71203df0e47fa4efca4, Kernel 3a23fb158ba517b77a2e5258263bdfdaa480f758, Kernel 64517aeaa3d8b158e4d01321a095be48cb551251 and 5 more.
In the Linux kernel, the following vulnerability has been resolved: of/overlay: don't leak fragment references when changeset init fails init_overlay_changeset() stores the number of initialized fragments in ovcs->count only on full success. When find_target() or the __symbols__ lookup fails partway through, the target and overlay references taken for the fragments initialized so far are never dropped: free_overlay_changeset() bounds its cleanup loop by ovcs->count, which is still 0. Store the running count on the error path so free_overlay_changeset() puts whatever was set up. The store is guarded by ovcs->fragments because on the allocation-failure path cnt still holds the counting pass total while there is no fragments array; everywhere else cnt only counts fully-initialized fragments.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =4.15, >=61b4de4e0b384f4a22c55c3bada604da49cec4e1 <1d62f0f2bc7edb12ed09f71203df0e47fa4efca4, >=61b4de4e0b384f4a22c55c3bada604da49cec4e1 <3a23fb158ba517b77a2e5258263bdfdaa480f758, >=61b4de4e0b384f4a22c55c3bada604da49cec4e1 <64517aeaa3d8b158e4d01321a095be48cb551251, >=61b4de4e0b384f4a22c55c3bada604da49cec4e1 <702b5db6e7b3865be70675d57d6fd7dde80d02b6, >=61b4de4e0b384f4a22c55c3bada604da49cec4e1 <7a46f1917b320cc8762183b802301da02a191b6a, >=61b4de4e0b384f4a22c55c3bada604da49cec4e1 <894573e2fdaeb1b15030b7eebc22615edf28a6cd, >=61b4de4e0b384f4a22c55c3bada604da49cec4e1 <bbe3dc64b28a14bd9ecb514bbf5115ac8472ed80, >=61b4de4e0b384f4a22c55c3bada604da49cec4e1 <c654f283d7db20648a5bbf979209f78d4fa9be3f | 1d62f0f2bc7edb12ed09f71203df0e47fa4efca4, 3a23fb158ba517b77a2e5258263bdfdaa480f758, 64517aeaa3d8b158e4d01321a095be48cb551251, 702b5db6e7b3865be70675d57d6fd7dde80d02b6, 7a46f1917b320cc8762183b802301da02a191b6a, 894573e2fdaeb1b15030b7eebc22615edf28a6cd, bbe3dc64b28a14bd9ecb514bbf5115ac8472ed80, c654f283d7db20648a5bbf979209f78d4fa9be3f |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket