The preferred practice should be to make a correction on a branch, which is the common base of all branches into which the correction should be combined, and combine them with entire branches. This allows you to have a correspondence between "commit A in branch B" and "is a fix for error A in branch B".
If you do not have such a branch, of course, you can make a temporary one from a suitable point in the history, for example. found using git merge-base .
The circumstances in which this may be problematic is where the branches diverge so much that essentially you need to make a difference to solve the same problem in each branch.
eg.
git checkout -b quickfix $(git merge-base master branch)
source share