CVE-2022-49191 (GCVE-0-2022-49191)

Vulnerability from cvelistv5 – Published: 2025-02-26 01:55 – Updated: 2025-05-04 08:31
VLAI?
Title
mxser: fix xmit_buf leak in activate when LSR == 0xff
Summary
In the Linux kernel, the following vulnerability has been resolved: mxser: fix xmit_buf leak in activate when LSR == 0xff When LSR is 0xff in ->activate() (rather unlike), we return an error. Provided ->shutdown() is not called when ->activate() fails, nothing actually frees the buffer in this case. Fix this by properly freeing the buffer in a designated label. We jump there also from the "!info->type" if now too.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 6769140d304731f0a3b177470a2adb4bacd9036b , < 376922045009f8ea2d20a8fa3475e95b47c41690 (git)
Affected: 6769140d304731f0a3b177470a2adb4bacd9036b , < 125b7c929fc9b1e5eaa344bceb6367dfa6fd3f9d (git)
Affected: 6769140d304731f0a3b177470a2adb4bacd9036b , < 685b6d16bf89595310b5d61394c9b97cc9505c7c (git)
Affected: 6769140d304731f0a3b177470a2adb4bacd9036b , < 996291d06851a26678a0fab488b6e1f0677c0576 (git)
Affected: 6769140d304731f0a3b177470a2adb4bacd9036b , < 2cd05c38a27bee7fb42aa4d43174d68ac55dac0f (git)
Affected: 6769140d304731f0a3b177470a2adb4bacd9036b , < b125b08dbee3611f03f53b71471813ed4ccafcdd (git)
Affected: 6769140d304731f0a3b177470a2adb4bacd9036b , < 6c9041b2f90c0eace73106f22350e1d2c98f5edc (git)
Affected: 6769140d304731f0a3b177470a2adb4bacd9036b , < 6dffc2035fbaada60ca8db59e0962e34f760370a (git)
Affected: 6769140d304731f0a3b177470a2adb4bacd9036b , < cd3a4907ee334b40d7aa880c7ab310b154fd5cd4 (git)
Create a notification for this product.
    Linux Linux Affected: 2.6.33
Unaffected: 0 , < 2.6.33 (semver)
Unaffected: 4.9.311 , ≤ 4.9.* (semver)
Unaffected: 4.14.276 , ≤ 4.14.* (semver)
Unaffected: 4.19.238 , ≤ 4.19.* (semver)
Unaffected: 5.4.189 , ≤ 5.4.* (semver)
Unaffected: 5.10.110 , ≤ 5.10.* (semver)
Unaffected: 5.15.33 , ≤ 5.15.* (semver)
Unaffected: 5.16.19 , ≤ 5.16.* (semver)
Unaffected: 5.17.2 , ≤ 5.17.* (semver)
Unaffected: 5.18 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/tty/mxser.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "376922045009f8ea2d20a8fa3475e95b47c41690",
              "status": "affected",
              "version": "6769140d304731f0a3b177470a2adb4bacd9036b",
              "versionType": "git"
            },
            {
              "lessThan": "125b7c929fc9b1e5eaa344bceb6367dfa6fd3f9d",
              "status": "affected",
              "version": "6769140d304731f0a3b177470a2adb4bacd9036b",
              "versionType": "git"
            },
            {
              "lessThan": "685b6d16bf89595310b5d61394c9b97cc9505c7c",
              "status": "affected",
              "version": "6769140d304731f0a3b177470a2adb4bacd9036b",
              "versionType": "git"
            },
            {
              "lessThan": "996291d06851a26678a0fab488b6e1f0677c0576",
              "status": "affected",
              "version": "6769140d304731f0a3b177470a2adb4bacd9036b",
              "versionType": "git"
            },
            {
              "lessThan": "2cd05c38a27bee7fb42aa4d43174d68ac55dac0f",
              "status": "affected",
              "version": "6769140d304731f0a3b177470a2adb4bacd9036b",
              "versionType": "git"
            },
            {
              "lessThan": "b125b08dbee3611f03f53b71471813ed4ccafcdd",
              "status": "affected",
              "version": "6769140d304731f0a3b177470a2adb4bacd9036b",
              "versionType": "git"
            },
            {
              "lessThan": "6c9041b2f90c0eace73106f22350e1d2c98f5edc",
              "status": "affected",
              "version": "6769140d304731f0a3b177470a2adb4bacd9036b",
              "versionType": "git"
            },
            {
              "lessThan": "6dffc2035fbaada60ca8db59e0962e34f760370a",
              "status": "affected",
              "version": "6769140d304731f0a3b177470a2adb4bacd9036b",
              "versionType": "git"
            },
            {
              "lessThan": "cd3a4907ee334b40d7aa880c7ab310b154fd5cd4",
              "status": "affected",
              "version": "6769140d304731f0a3b177470a2adb4bacd9036b",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/tty/mxser.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.33"
            },
            {
              "lessThan": "2.6.33",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.311",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.276",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.238",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.189",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.110",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.33",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.16.*",
              "status": "unaffected",
              "version": "5.16.19",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.17.*",
              "status": "unaffected",
              "version": "5.17.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.18",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.311",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.276",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.238",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.189",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.110",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.33",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.16.19",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.17.2",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18",
                  "versionStartIncluding": "2.6.33",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmxser: fix xmit_buf leak in activate when LSR == 0xff\n\nWhen LSR is 0xff in -\u003eactivate() (rather unlike), we return an error.\nProvided -\u003eshutdown() is not called when -\u003eactivate() fails, nothing\nactually frees the buffer in this case.\n\nFix this by properly freeing the buffer in a designated label. We jump\nthere also from the \"!info-\u003etype\" if now too."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T08:31:56.809Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/376922045009f8ea2d20a8fa3475e95b47c41690"
        },
        {
          "url": "https://git.kernel.org/stable/c/125b7c929fc9b1e5eaa344bceb6367dfa6fd3f9d"
        },
        {
          "url": "https://git.kernel.org/stable/c/685b6d16bf89595310b5d61394c9b97cc9505c7c"
        },
        {
          "url": "https://git.kernel.org/stable/c/996291d06851a26678a0fab488b6e1f0677c0576"
        },
        {
          "url": "https://git.kernel.org/stable/c/2cd05c38a27bee7fb42aa4d43174d68ac55dac0f"
        },
        {
          "url": "https://git.kernel.org/stable/c/b125b08dbee3611f03f53b71471813ed4ccafcdd"
        },
        {
          "url": "https://git.kernel.org/stable/c/6c9041b2f90c0eace73106f22350e1d2c98f5edc"
        },
        {
          "url": "https://git.kernel.org/stable/c/6dffc2035fbaada60ca8db59e0962e34f760370a"
        },
        {
          "url": "https://git.kernel.org/stable/c/cd3a4907ee334b40d7aa880c7ab310b154fd5cd4"
        }
      ],
      "title": "mxser: fix xmit_buf leak in activate when LSR == 0xff",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49191",
    "datePublished": "2025-02-26T01:55:38.124Z",
    "dateReserved": "2025-02-26T01:49:39.286Z",
    "dateUpdated": "2025-05-04T08:31:56.809Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…