5.5 CVE-2024-27078

Enriched by CISA Patch
 

In the Linux kernel, the following vulnerability has been resolved: media: v4l2-tpg: fix some memleaks in tpg_alloc In tpg_alloc, resources should be deallocated in each and every error-handling paths, since they are allocated in for statements. Otherwise there would be memleaks because tpg_free is called only when tpg_alloc return 0.
https://nvd.nist.gov/vuln/detail/CVE-2024-27078

Categories

CWE-401 : Missing Release of Memory after Effective Lifetime
The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse. a common term for not releasing memory;however, the same term is also used for "disclosure ofsensitive information from memory," so use of this termis discouraged. Fuzz testing (fuzzing) is a powerful technique for generating large numbers of diverse inputs - either randomly or algorithmically - and dynamically invoking the code with those inputs. Even with random inputs, it is often capable of generating unexpected results such as crashes, memory corruption, or resource consumption. Fuzzing effectively produces repeatable test cases that clearly indicate bugs, which helps developers to diagnose the issues. Use tools that are integrated duringcompilation to insert runtime error-checking mechanismsrelated to memory safety errors, such as AddressSanitizer(ASan) for C/C++ [REF-1518] or valgrind [REF-480]. Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.) Use an abstraction library to abstract away risky APIs. Not a complete solution. Consider using the Boehm-Demers-Weiser garbage collector (bdwgc), which can help avoid leaks. Memory leak because function does not free() an element of a data structure. Memory leak when counter variable is not decremented. chain: reference count is not decremented, leading to memory leak in OS by sending ICMP packets. Kernel uses wrong function to release a data structure, preventing data from being properly tracked by other code. Memory leak via unknown manipulations as part of protocol test suite. Memory leak via a series of the same command.

References

0b142b55-0307-4c5a-b3c9-f314f3fb7c5e

416baaa9-dc9f-4396-8d5f-8c081fb06d67 Patch

af854a3a-2127-422b-91ae-364da2661108 Patch

https://git.kernel.org/stable/c/0de691ff547d86dd54c24b40a81f9c925df8dd77
Patch
https://git.kernel.org/stable/c/31096da07933598da8522c54bd007376fb152a09
Patch
https://git.kernel.org/stable/c/4c86c772fef06f5d7a66151bac42366825db0941
Patch
https://git.kernel.org/stable/c/622b1cf38521569869c8f7b9fbe9e4f1a289add7
Patch
https://git.kernel.org/stable/c/6bf5c2fade8ed53b2d26fa9875e5b04f36c7145d
Patch
https://git.kernel.org/stable/c/770a57922ce36a8476c43f7400b6501c554ea511
Patch
https://git.kernel.org/stable/c/8269ab16415f2065cd792c49b0475543936cbd79
Patch
https://git.kernel.org/stable/c/8cf9c5051076e0eb958f4361d50d8b0c3ee6691c
Patch
https://git.kernel.org/stable/c/94303a06e1852a366e9671fff46d19459f88cb28
Patch
https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html
Mailing List
https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html
Mailing List


 

AFFECTED (from MITRE)


Vendor Product Versions
Linux Linux
  • 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < 0de691ff547d86dd54c24b40a81f9c925df8dd77 [affected]
  • 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < 8269ab16415f2065cd792c49b0475543936cbd79 [affected]
  • 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < 94303a06e1852a366e9671fff46d19459f88cb28 [affected]
  • 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < 770a57922ce36a8476c43f7400b6501c554ea511 [affected]
  • 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < 6bf5c2fade8ed53b2d26fa9875e5b04f36c7145d [affected]
  • 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < 4c86c772fef06f5d7a66151bac42366825db0941 [affected]
  • 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < 31096da07933598da8522c54bd007376fb152a09 [affected]
  • 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < 622b1cf38521569869c8f7b9fbe9e4f1a289add7 [affected]
  • 63881df94d3ecbb0deafa0b77da62ff2f32961c4 < 8cf9c5051076e0eb958f4361d50d8b0c3ee6691c [affected]
Linux Linux
  • 3.18 [affected]
  • < 3.18 [unaffected]
  • 4.19.311 ≤ 4.19.* [unaffected]
  • 5.4.273 ≤ 5.4.* [unaffected]
  • 5.10.214 ≤ 5.10.* [unaffected]
  • 5.15.153 ≤ 5.15.* [unaffected]
  • 6.1.83 ≤ 6.1.* [unaffected]
  • 6.6.23 ≤ 6.6.* [unaffected]
  • 6.7.11 ≤ 6.7.* [unaffected]
  • 6.8.2 ≤ 6.8.* [unaffected]
  • 6.9 ≤ * [unaffected]
© 2022 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation.

CPE

cpe start end
Configuration 1
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* >= 3.18 < 4.19.311
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* >= 4.20 < 5.4.273
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* >= 5.5 < 5.10.214
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* >= 5.11 < 5.15.153
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* >= 5.16 < 6.1.83
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* >= 6.2 < 6.6.23
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* >= 6.7 < 6.7.11
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* >= 6.8 < 6.8.2


REMEDIATION


Patch

Url
https://git.kernel.org/stable/c/0de691ff547d86dd54c24b40a81f9c925df8dd77
https://git.kernel.org/stable/c/31096da07933598da8522c54bd007376fb152a09
https://git.kernel.org/stable/c/4c86c772fef06f5d7a66151bac42366825db0941
https://git.kernel.org/stable/c/622b1cf38521569869c8f7b9fbe9e4f1a289add7
https://git.kernel.org/stable/c/6bf5c2fade8ed53b2d26fa9875e5b04f36c7145d
https://git.kernel.org/stable/c/770a57922ce36a8476c43f7400b6501c554ea511
https://git.kernel.org/stable/c/8269ab16415f2065cd792c49b0475543936cbd79
https://git.kernel.org/stable/c/8cf9c5051076e0eb958f4361d50d8b0c3ee6691c
https://git.kernel.org/stable/c/94303a06e1852a366e9671fff46d19459f88cb28
https://git.kernel.org/stable/c/0de691ff547d86dd54c24b40a81f9c925df8dd77
https://git.kernel.org/stable/c/31096da07933598da8522c54bd007376fb152a09
https://git.kernel.org/stable/c/4c86c772fef06f5d7a66151bac42366825db0941
https://git.kernel.org/stable/c/622b1cf38521569869c8f7b9fbe9e4f1a289add7
https://git.kernel.org/stable/c/6bf5c2fade8ed53b2d26fa9875e5b04f36c7145d
https://git.kernel.org/stable/c/770a57922ce36a8476c43f7400b6501c554ea511
https://git.kernel.org/stable/c/8269ab16415f2065cd792c49b0475543936cbd79
https://git.kernel.org/stable/c/8cf9c5051076e0eb958f4361d50d8b0c3ee6691c
https://git.kernel.org/stable/c/94303a06e1852a366e9671fff46d19459f88cb28


EXPLOITS


Exploit-db.com

id description date
No known exploits

POC Github

Url
No known exploits

Other Nist (github, ...)

Url
No known exploits


CAPEC


Common Attack Pattern Enumerations and Classifications

id description severity
No entry