{"id":"CVE-2022-49180","aliases":["CVE-2022-49180"],"related":[],"kind":"vulnerability","state":"published","title":"LSM: general protection fault in legacy_parse_param","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nLSM: general protection fault in legacy_parse_param\n\nThe usual LSM hook \"bail on fail\" scheme doesn't work for cases where\na security module may return an error code indicating that it does not\nrecognize an input.  In this particular case Smack sees a mount option\nthat it recognizes, and returns 0. A call to a BPF hook follows, which\nreturns -ENOPARAM, which confuses the caller because Smack has processed\nits data.\n\nThe SELinux hook incorrectly returns 1 on success. There was a time\nwhen this was correct, however the current expectation is that it\nreturn 0 on success. This is repaired.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nLSM: general protection fault in legacy_parse_param\n\nThe usual LSM hook \"bail on fail\" scheme doesn't work for cases where\na security module may return an error code indicating that it does not\nrecognize an input.  In this particular case Smack sees a mount option\nthat it recognizes, and returns 0. A call to a BPF hook follows, which\nreturns -ENOPARAM, which confuses the caller because Smack has processed\nits data.\n\nThe SELinux hook incorrectly returns 1 on success. There was a time\nwhen this was correct, however the current expectation is that it\nreturn 0 on success. This is repaired.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: LSM: error de protección general en legacy_parse_param El esquema habitual de gancho LSM \"bail on fail\" no funciona para los casos en los que un módulo de seguridad puede devolver un código de error que indica que no reconoce una entrada. En este caso particular, Smack ve una opción de montaje que reconoce y devuelve 0. Sigue una llamada a un gancho BPF, que devuelve -ENOPARAM, lo que confunde al llamador porque Smack ha procesado sus datos. El gancho SELinux devuelve incorrectamente 1 en caso de éxito. Hubo un momento en que esto era correcto, sin embargo, la expectativa actual es que devuelva 0 en caso de éxito. Esto se ha reparado.","source":"nvd"}],"published":"2025-02-26T01:55:32.590Z","modified":"2026-06-17T05:17:18.037Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"da2441fdffbf7602da702aea5bd95ca4dc3d63fc","fixed":"ddcdda888e14ca451b3ee83d11b65b2a9c8e783b","status":"affected"},{"type":"git","introduced":"da2441fdffbf7602da702aea5bd95ca4dc3d63fc","fixed":"2784604c8c6fc523248f8f80a421c313a9d790b7","status":"affected"},{"type":"git","introduced":"da2441fdffbf7602da702aea5bd95ca4dc3d63fc","fixed":"f3f93a1aaafc3032e0a9655fb43deccfb3e953a3","status":"affected"},{"type":"git","introduced":"da2441fdffbf7602da702aea5bd95ca4dc3d63fc","fixed":"00fc07fa0b4a004711b6e1a944f0d2e46f7093b7","status":"affected"},{"type":"git","introduced":"da2441fdffbf7602da702aea5bd95ca4dc3d63fc","fixed":"cadae7c5e477aaafcba819b8e4a3d1c1a1503b62","status":"affected"},{"type":"git","introduced":"da2441fdffbf7602da702aea5bd95ca4dc3d63fc","fixed":"ecff30575b5ad0eda149aadad247b7f75411fd47","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.1","status":"unaffected"},{"type":"semver","introduced":"5.4.189","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.110","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.33","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.19","lastAffected":"5.16.*","status":"unaffected"},{"type":"semver","introduced":"5.17.2","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"5.4.189"},{"status":"affected","introduced":"5.5","fixed":"5.10.110"},{"status":"affected","introduced":"5.11","fixed":"5.15.33"},{"status":"affected","introduced":"5.16","fixed":"5.16.19"},{"status":"affected","introduced":"5.17","fixed":"5.17.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/ddcdda888e14ca451b3ee83d11b65b2a9c8e783b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2784604c8c6fc523248f8f80a421c313a9d790b7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f3f93a1aaafc3032e0a9655fb43deccfb3e953a3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/00fc07fa0b4a004711b6e1a944f0d2e46f7093b7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cadae7c5e477aaafcba819b8e4a3d1c1a1503b62","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ecff30575b5ad0eda149aadad247b7f75411fd47","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49180","url":"https://www.cve.org/CVERecord?id=CVE-2022-49180","licence":"CVE Terms of Use","modified":"2026-05-11T18:54:40.977Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49180","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49180","licence":"Public domain","modified":"2026-06-17T05:17:18.037Z"}],"updatedAt":"2026-11-25T22:58:20.256Z","epss":{"score":0.00285,"percentile":0.13678,"date":"2026-11-30T12:00:22.000Z"}}