Skip to content
Heist/ feed
Back to feed
UnratedFix available

apparmor: fix a memleak in multi_transaction_new()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: apparmor: fix a memleak in multi_transaction_new() In multi_transaction_new(), the variable t is not freed or passed out on the failure of copy_from_user(t->data, buf, size), which could lead to a memleak. Fix this bug by adding a put_multi_transaction(t) in the error path.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.14.303, 4.19.270, 5.10.163, 5.15.86, 5.4.229, 6.0.16, 6.1.2
CVEs
CVE-2022-50754
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 17:27 UTC · Revision 1

Source evidence

apparmor: fix a memleak in multi_transaction_new()

core-osv · Original source

Published 24 Dec 2025, 13:05 UTC

In the Linux kernel, the following vulnerability has been resolved: apparmor: fix a memleak in multi_transaction_new() In multi_transaction_new(), the variable t is not freed or passed out on the failure of copy_from_user(t->data, buf, size), which could lead to a memleak. Fix this bug by adding a put_multi_transaction(t) in the error path.

osv:CVE-2022-50754

Kernel

Fixed versions: 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2

Complete source record
{
  "id": "2f9d6b2ed7b2a379b81f61e77db85c5551f61f319ee94cfa3709bed8a14ef6db",
  "url": "https://osv.dev/vulnerability/CVE-2022-50754",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "apparmor: fix a memleak in multi_transaction_new()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: apparmor: fix a memleak in multi_transaction_new() In multi_transaction_new(), the variable t is not freed or passed out on the failure of copy_from_user(t->data, buf, size), which could lead to a memleak. Fix this bug by adding a put_multi_transaction(t) in the error path.",
    "evidence": "osv:CVE-2022-50754",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.14.303",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "4.19.270",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.229",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.163",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.86",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.0.16",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-50754",
      "aliases": [
        "CVE-2022-50754"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "1dea3b41e84c5923173fe654dcb758a5cb4a46e5"
                },
                {
                  "fixed": "11d5fe7da67c3334cefc981297fd5defb78df15c"
                },
                {
                  "fixed": "95e6adc6a7a4761ddf69ad713e55a06a3206309d"
                },
                {
                  "fixed": "eb0f78e28cbc8f97439c0a4c80ee5160c1df5ce6"
                },
                {
                  "fixed": "935d86b29093e75b6c547d90b3979c2c2d23f1c4"
                },
                {
                  "fixed": "775a37ffa9f4681c4ad84c8634a7eec8af7098d4"
                },
                {
                  "fixed": "88989932c2269ea66074f52a6213598838f8b9e7"
                },
                {
                  "fixed": "3d27a436e294ac5d7a51bd5348ca63a42a468b35"
                },
                {
                  "fixed": "c73275cf6834787ca090317f1d20dbfa3b7f05aa"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50754.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.13.0"
                },
                {
                  "fixed": "4.14.303"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.15.0"
                },
                {
                  "fixed": "4.19.270"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.229"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.163"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.86"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.0.16"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.1.0"
                },
                {
                  "fixed": "6.1.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50754.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:44.606742249Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/11d5fe7da67c3334cefc981297fd5defb78df15c",
        "https://git.kernel.org/stable/c/3d27a436e294ac5d7a51bd5348ca63a42a468b35",
        "https://git.kernel.org/stable/c/775a37ffa9f4681c4ad84c8634a7eec8af7098d4",
        "https://git.kernel.org/stable/c/88989932c2269ea66074f52a6213598838f8b9e7",
        "https://git.kernel.org/stable/c/935d86b29093e75b6c547d90b3979c2c2d23f1c4",
        "https://git.kernel.org/stable/c/95e6adc6a7a4761ddf69ad713e55a06a3206309d",
        "https://git.kernel.org/stable/c/c73275cf6834787ca090317f1d20dbfa3b7f05aa",
        "https://git.kernel.org/stable/c/eb0f78e28cbc8f97439c0a4c80ee5160c1df5ce6",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50754.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-50754",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50754.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-50754",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 512532,
  "published_at": "2025-12-24T13:05:48.245+00:00"
}