Zum Hauptinhalt springen
LIVE
CVSS 6.9CVE-2026-137684 | A security flaw has been discovered in eosphoros-ai DB-GPT up to 0.8.3. This affects the function editor_sql_run of the file packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/editor/api_editor_v1.py of the component Editor SQL Run API. Performing a manipulation of the argument db_name results in authorization bypass. It is possible to initiate the attack remotely. The exploit has been released to the public and may be used for attacks. The pull request to fixCVSS 8.7CVE-2026-137992 | libexpat through 2.11.0 contains a denial of service vulnerability in defineAttribute() of lib/xmlparse.c that fails to detect duplicate non-ID #IMPLIED or #REQUIRED attribute declarations. Attackers can supply a crafted XML document with repeated ATTLIST declarations in an internal DTD subset to cause quadratic CPU consumption in storeAtts() during parsing.CVSS 8.5CVE-2026-137994 | Leo through 6.8.10 contains an insecure deserialization vulnerability that allows attackers to execute code by embedding pickled data in unknown XML attributes of .leo outlines. Attackers can place a pickle __reduce__ gadget in a or element attribute that resolveUa passes to pickle.loads, executing code with user privileges when the outline is opened.CVSS 7.0CVE-2026-137995 | FOG Project before 1.6.0.119 contains an information disclosure vulnerability that allows unauthenticated attackers to obtain host tokens from status/hostgetkey.php by supplying a host MAC address. Attackers can present the token to service/hostinfo.php to retrieve decrypted Active Directory join credentials and Windows product keys during deployment windows.CVSS 6.8CVE-2026-137996 | Zettlr before 4.11.0 fails to validate URI schemes in Markdown link targets, allowing attackers to launch arbitrary registered protocol handlers via Electron shell.openExternal without confirmation. Attackers can craft documents whose Ctrl/Cmd-clicked links use smb:// to leak NTLM credential hashes on Windows or invoke custom protocol handlers with attacker-controlled parameters.CVSS 8.5CVE-2026-137997 | HCIPy through 0.7.1 contains an insecure deserialization vulnerability that allows attackers to execute code by supplying crafted .pkl files to read_field, read_grid or read_mode_basis. Because hcipy/util/io.py selects pickle by file extension and calls pickle.load, a __reduce__ gadget in a pupil, apodizer, PSF or mode-basis file runs code with the user's privileges.CVSS 8.5CVE-2026-137998 | Detoxify 0.5.3 through 0.5.4 contains an insecure deserialization vulnerability in load_checkpoint that allows attackers to execute code by supplying a crafted checkpoint file. Attackers can embed a pickle __reduce__ gadget in a .ckpt file loaded via torch.load with weights_only=False to run code with the user's privileges.CVSS 8.5CVE-2026-137999 | JSONSchema2PoPo2 through 3.0.3 contains a code injection vulnerability that allows attackers to inject Python code by supplying JSON Schema default or format values that are written unescaped. Attackers can place a single quote in a string property default to break out of the literal in the generated __init__ signature, executing injected code when the generated module is imported.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

How to Get Your First Linux Kernel Patch Accepted

Getting a first Linux kernel patch accepted means choosing one small, real, single-purpose fix, basing it on the correct tree from the MAINTAINERS file, and…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Cloud & Tech-Stack · 10 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung

Getting a first Linux kernel patch accepted means choosing one small, real, single-purpose fix, basing it on the correct tree from the MAINTAINERS file, and following the kernel's exact submission process end to end. That process is: commit with git commit -s so your Signed-off-by certifies the work, run scripts/checkpatch.pl --strict and confirm a clean build, find recipients with scripts/get_maintainer.pl, and send the patch inline (never as an attachment) with git send-email. Most first patches are not merged as sent, so responding well to reviewer feedback, with patience over weeks, is what actually decides whether a patch gets accepted.




For an embedded or kernel engineer, getting your first Linux kernel patch accepted is one of the clearest signals you can put on a CV. It proves you can read unfamiliar code, follow a strict process, and work with maintainers who hold a very high bar. This guide walks through the exact steps to prepare, send, and defend a first patch, using the current kernel.org process. The change itself can be small. What matters is that you complete the full loop correctly.






Why your first Linux kernel patch is worth the effort



A merged patch is public and permanent. Your name and sign-off stay in the Git history of a project that runs on billions of devices. For hiring managers in embedded Linux, device drivers, and BSP work, that is stronger evidence than any certificate, because the kernel community rejects work that is sloppy or untested. The skills you practice here, namely reading code paths, writing a clear commit message, and responding to review, are the same skills that senior engineering roles are built on.



You do not need to invent a feature. Most first contributions are small fixes: a real bug, a correctness issue found by a static analysis tool, or a documented behaviour that the code does not match. The goal of a first patch is to learn the workflow end to end, not to make a large change.






Find a change worth submitting



Pick a change that is small, real, and easy for a reviewer to verify. Each patch must solve exactly one problem and be justifiable on its own. Good places to look for a first change include:




  • Warnings from scripts/checkpatch.pl or sparse on a driver you already work with, where the fix is a genuine correctness improvement and not a cosmetic edit made only to silence the tool.

  • A real bug you hit on your own hardware, where you can describe the user-visible impact (a crash, a lockup, a wrong value in dmesg).

  • The drivers/staging tree, which historically accepts cleanup and fix work from new contributors.

  • A mismatch between documented behaviour and actual code that you can demonstrate.



Avoid changes that only reformat code or rename things for taste. Maintainers see many such patches and usually reject them. If you found the bug with git bisect, record the commit that introduced it; you will reference it later with a Fixes: tag.




Your move → Before writing any code, open the MAINTAINERS file and find the subsystem that owns the file you want to change. Note the T: line; it tells you which Git tree to base your work on.







Set up the source tree and your identity



Start from the correct tree. Many changes go to a subsystem maintainer's tree rather than mainline, so check the MAINTAINERS entry first. To begin from mainline:




raghu@techveda.org:~$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
raghu@techveda.org:~$ cd linux






Set your real name and email. The kernel does not accept anonymous contributions, and the name you configure here becomes the author and sign-off in the permanent changelog.




raghu@techveda.org:~$ git config user.name "Raghu Bharadwaj"
raghu@techveda.org:~$ git config user.email "you@example.org"






Create a topic branch so you can later generate the base-commit information that reviewers and automated CI need:




raghu@techveda.org:~$ git checkout -t -b my-first-fix master
Branch 'my-first-fix' set up to track local branch 'master'.
Switched to a new branch 'my-first-fix'









Make the change and write the commit message



Make one logical change, then commit with sign-off. The -s flag adds your Signed-off-by: line, which certifies that you have the right to submit the work under the kernel's licence (the Developer's Certificate of Origin). The -v flag shows the diff in the editor so you can review it while writing the message:




raghu@techveda.org:~$ git commit -s -v






The commit message is judged as carefully as the code. Write the description in the imperative mood, for example "fix" and "remove" rather than "fixed" or "this patch removes". State the problem first, then the user-visible impact, then what your change does. If you are fixing a specific earlier commit, add a Fixes: tag with at least the first 12 characters of its SHA-1 and the one-line summary. A complete message looks like this:




net: foo: avoid use-after-free on probe failure

When foo_probe() fails after registering the netdev, the cleanup
path frees the private data before unregistering, so a queued
work item dereferences freed memory and triggers a KASAN
use-after-free splat on disconnect.

Reorder teardown to unregister the device before freeing its
private data.

Fixes: 54a4f0239f2e ("net: foo: add initial probe support")
Signed-off-by: Raghu Bharadwaj <you@example.org>






If you used any AI coding assistant while preparing the change, the current process asks you to record that with an Assisted-by: tag; failing to disclose it can hurt acceptance. Keep one logical change per commit. If the message starts to describe two unrelated things, split it into two patches.






Check the patch before you send it



Never send a patch you have not style-checked and built. Run the style checker on your commit; --strict turns on the stricter CHECK-level advice that maintainers often expect from new code:




raghu@techveda.org:~$ ./scripts/checkpatch.pl --strict --git HEAD
total: 0 errors, 0 warnings, 0 checks, 24 lines checked






checkpatch reports at three levels: ERROR for things very likely wrong, WARNING for things needing review, and CHECK for things needing thought. You should be able to justify every violation that remains. The checker is a guide, not a replacement for judgement, so do not make code worse just to silence it. Then confirm the tree still builds cleanly with your change applied; a patch that breaks the build will be rejected without a real review.



Generate the patch as a file. Using --base=auto records the base commit so reviewers and CI know exactly what your work applies to:




raghu@techveda.org:~$ git format-patch -1 --base=auto -o outgoing/
outgoing/0001-net-foo-avoid-use-after-free-on-probe-failure.patch







Your move → Read your own patch one more time as plain text in the outgoing/ file. The subject line becomes a permanent, searchable identifier for your change, so keep it under about 70 characters and make it describe what and why.







Send the patch to the right people



Find the correct recipients with the maintainer script. Pass it your patch file, not a source file:




raghu@techveda.org:~$ ./scripts/get_maintainer.pl outgoing/0001-net-foo-avoid-use-after-free-on-probe-failure.patch






Send the patch inline as plain text. Patches must not be sent as attachments, because reviewers need to quote your code line by line in their replies. The recommended tool is git send-email, which formats the subject prefix, sign-off, and separators correctly and is far less error-prone than a normal mail client. You can let the maintainer script fill the Cc list automatically:




raghu@techveda.org:~$ git send-email 
--cc-cmd='./scripts/get_maintainer.pl --norolestats outgoing/0001-net-foo-avoid-use-after-free-on-probe-failure.patch'
outgoing/0001-net-foo-avoid-use-after-free-on-probe-failure.patch






Always Cc the subsystem list and the maintainers; linux-kernel@vger.kernel.org is the default catch-all list, but do not spam unrelated lists or people. If you would rather not manage these mechanics by hand, the b4 tool automates much of the format, check, and send flow.






Respond to review, which is what decides acceptance



Most first patches are not merged as sent. You will get review comments, and responding to them well is the part that actually gets your patch accepted. Reply to the comments, thank the reviewer, and use trimmed, interleaved replies rather than top-posting. When you send a new version, bump the version in the subject (the tooling produces [PATCH v2] for you) and add a short changelog below the --- separator explaining what changed since the previous version, so it does not become part of the permanent commit log.



Be patient. Reviewers are busy and you may wait two to three weeks for a response. Wait at least a week before pinging or resending, and longer during a merge window. If a reviewer offers a Reviewed-by: or Tested-by: tag, carry it forward on the next version unless the patch changed substantially. Persistence and politeness matter more than cleverness when getting a first patch merged.






Key takeaways




  • Choose a small, real, single-purpose change and base it on the correct tree from the MAINTAINERS file.

  • Commit with git commit -s so your Signed-off-by: certifies the work; write the message in imperative mood and add a Fixes: tag when you fix a known commit.

  • Run scripts/checkpatch.pl --strict and confirm a clean build before you send anything.

  • Route the patch with scripts/get_maintainer.pl and send it inline with git send-email; never attach it.

  • Disclose AI assistance with an Assisted-by: tag, and treat review feedback as the main work, not an afterthought.






Frequently asked questions



Do I need to find or invent a big feature for my first kernel patch?

No. Most first contributions are small fixes, such as a real bug, a correctness issue flagged by checkpatch.pl or sparse, or a documented behaviour that does not match the code. The goal is to learn the submission workflow end to end, not to make a large change.



How do I find the right Git tree and maintainers for my change?

Open the MAINTAINERS file and find the subsystem that owns the file you want to change, noting its T: line for the correct Git tree to base your work on. Before sending, run scripts/get_maintainer.pl against your patch file to get the correct recipient list.



Can I send a kernel patch as an email attachment?

No, patches must not be sent as attachments, because reviewers need to quote the code line by line in their replies. The recommended method is to send the patch inline as plain text using git send-email.



Why was my first kernel patch not merged even though I followed the process?

Most first patches are not merged as sent, and responding well to review comments is what actually gets a patch accepted. Reply to feedback, use trimmed interleaved replies, bump the patch version in the subject line for revisions, and be patient, since reviewers may take two to three weeks to respond.






Further reading








Originally published at techveda.live. TECH VEDA runs mentor-led Linux kernel, device drivers and embedded Linux training.

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Communitydiscussie & reacties

🌐 Naar de hoofdchat

Start de discussie in de Social Chat broadcaststream of dien hierboven een vakbijdrage in via het aanvulformulier.

Cyber Threat Intelligence & Forensiek

ATT&CK-Navigator · IoC-Radar & Graaf

IoC Intelligence
1 Indikatoren · Defanged · STIX 2.1
techveda[.]live
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
4 Knoten · 3 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Community Rating &amp; Social Proof
⭐ Lezersbeoordeling
–
Ø / 5.0
Nog geen recensies van lezers
Was dit artikel nuttig?
0
Geef uw beoordeling
Detailbeoordeling (optioneel)
Inhoud & Kwaliteit
Bron & Geloofwaardigheid
Actualiteit
Security Briefing Gratis · 1-klik uitschrijven

Intelligence Digest gratis

Dagelijks het belangrijkste beveiligingsnieuws · kan op elk moment worden opgehaald

Verwant Story Cluster & Sources (vector AI)

2 Cluster
2 Bronnen
OpenAI counter-sues Apple over trade secret theft
AppleInsider News 34 min. geleden
1 een andere bron
Soortgelijke bijdragen
🔍 Verwandte News

Auch interessante Nachrichten How to Get Your First Linux Kernel Patch Accepted

Thematisch verwandte Begriffe: Your, First, Linux, Kernel · 6 Treffer

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

Laden...

Bijdragen zijn geladen ...

Laden...

Video's zijn geladen...

💬 Reacties worden geladen…
Trek om te vernieuwen
Widgets & Topics
Loading widgets…
Nächster Beitrag