Memory Leak Affecting kernel-coco-devel package, versions <6.4.0-15061.12.coco15sp6.1


Severity

Recommended
0.0
low
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.04% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Memory Leak vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-SLES156-KERNELCOCODEVEL-8678041
  • published30 Jan 2025
  • disclosed29 Jan 2025

Introduced: 29 Jan 2025

NewCVE-2024-56741  (opens in a new tab)
CWE-401  (opens in a new tab)

How to fix?

Upgrade SLES:15.6 kernel-coco-devel to version 6.4.0-15061.12.coco15sp6.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream kernel-coco-devel package and not the kernel-coco-devel package as distributed by SLES. See How to fix? for SLES:15.6 relevant fixed versions and status.

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

apparmor: test: Fix memory leak for aa_unpack_strdup()

The string allocated by kmemdup() in aa_unpack_strdup() is not freed and cause following memory leaks, free them to fix it.

unreferenced object 0xffffff80c6af8a50 (size 8):
  comm &#34;kunit_try_catch&#34;, pid 225, jiffies 4294894407
  hex dump (first 8 bytes):
    74 65 73 74 69 6e 67 00                          testing.
  backtrace (crc 5eab668b):
    [&lt;0000000001e3714d&gt;] kmemleak_alloc+0x34/0x40
    [&lt;000000006e6c7776&gt;] __kmalloc_node_track_caller_noprof+0x300/0x3e0
    [&lt;000000006870467c&gt;] kmemdup_noprof+0x34/0x60
    [&lt;000000001176bb03&gt;] aa_unpack_strdup+0xd0/0x18c
    [&lt;000000008ecde918&gt;] policy_unpack_test_unpack_strdup_with_null_name+0xf8/0x3ec
    [&lt;0000000032ef8f77&gt;] kunit_try_run_case+0x13c/0x3ac
    [&lt;00000000f3edea23&gt;] kunit_generic_run_threadfn_adapter+0x80/0xec
    [&lt;00000000adf936cf&gt;] kthread+0x2e8/0x374
    [&lt;0000000041bb1628&gt;] ret_from_fork+0x10/0x20
unreferenced object 0xffffff80c2a29090 (size 8):
  comm &#34;kunit_try_catch&#34;, pid 227, jiffies 4294894409
  hex dump (first 8 bytes):
    74 65 73 74 69 6e 67 00                          testing.
  backtrace (crc 5eab668b):
    [&lt;0000000001e3714d&gt;] kmemleak_alloc+0x34/0x40
    [&lt;000000006e6c7776&gt;] __kmalloc_node_track_caller_noprof+0x300/0x3e0
    [&lt;000000006870467c&gt;] kmemdup_noprof+0x34/0x60
    [&lt;000000001176bb03&gt;] aa_unpack_strdup+0xd0/0x18c
    [&lt;0000000046a45c1a&gt;] policy_unpack_test_unpack_strdup_with_name+0xd0/0x3c4
    [&lt;0000000032ef8f77&gt;] kunit_try_run_case+0x13c/0x3ac
    [&lt;00000000f3edea23&gt;] kunit_generic_run_threadfn_adapter+0x80/0xec
    [&lt;00000000adf936cf&gt;] kthread+0x2e8/0x374
    [&lt;0000000041bb1628&gt;] ret_from_fork+0x10/0x20

CVSS Scores

version 3.1