Skip to main content

In the Linux kernel, the following vulnerability has been resolved: module: fix lost error code from codetag_load_module() If codetag_load_module()… (CVE-2026-98842)

0
Medium
Published: 10/18/2026 (10/18/2026, 18:32:05 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel module loading process was resolved. The function codetag_load_module() did not properly set an error code upon failure, causing load_module() to incorrectly return success (0) after the module teardown. Additionally, a memory leak occurred for livepatch modules due to mod->klp_info not being freed on this error path. This issue has been fixed by ensuring the error code is set and the livepatch memory is properly cleaned up.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 22:17:23 UTC

Technical Analysis

The Linux kernel contained a vulnerability where codetag_load_module() failed to set an error code when it encountered an error, leading load_module() to return 0 (success) despite the module being torn down. This could cause incorrect error handling by callers. Furthermore, for livepatch modules, the mod->klp_info structure allocated by copy_module_elf() leaked memory on this failure path. The fix involves setting the error code correctly and freeing the livepatch info via a new livepatch_cleanup label.

Potential Impact

The vulnerability could cause the kernel to incorrectly report successful module loading when it actually failed, potentially leading to inconsistent system states or error handling issues. The memory leak in livepatch modules could lead to resource exhaustion over time if the error path is triggered repeatedly. There is no indication of direct exploitation or security breach from this flaw.

Mitigation Recommendations

A fix has been implemented to address this vulnerability by correcting error code handling and cleaning up leaked memory in livepatch modules. Users should update their Linux kernel to the fixed version once available. Patch status is not explicitly confirmed in the provided data; check the vendor advisory for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-j9p6-994v-55hw
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98842"]

Threat ID: 6ad520a92cdf04f6569938a4

Added to database: 10/18/2026, 19:40:25 UTC

Last enriched: 10/18/2026, 22:17:23 UTC

Last updated: 10/18/2026, 22:17:23 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses