CVE-2021-47305

See a problem?
Source
https://nvd.nist.gov/vuln/detail/CVE-2021-47305
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-47305.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-47305
Related
Published
2024-05-21T15:15:18Z
Modified
2024-09-18T03:17:25.120924Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

dma-buf/sync_file: Don't leak fences on merge failure

Each addfence() call does a dmafenceget() on the relevant fence. In the error path, we weren't calling dmafenceput() so all those fences got leaked. Also, in the kreallocarray failure case, we weren't freeing the fences array. Instead, ensure that i and fences are always zero-initialized and dmafenceput() all the fences and kfree(fences) on every error path.

References

Affected packages

Debian:11 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.70-1

Affected versions

5.*

5.10.46-4
5.10.46-5
5.10.70-1~bpo10+1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.14.6-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.14.6-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}